trellis and invokeAI urls configurable in config
This commit is contained in:
@@ -9,16 +9,16 @@ public class TrellisClient : MonoBehaviour
|
||||
{
|
||||
public static TrellisClient Instance { get; private set; }
|
||||
|
||||
public string TRELLIS_BASE_URL;
|
||||
|
||||
private HttpClient httpClient;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
httpClient = new HttpClient();
|
||||
httpClient.BaseAddress = new Uri(TRELLIS_BASE_URL);
|
||||
httpClient.BaseAddress = new Uri(ConfigManager.Instance.Config.TrellisUrl);
|
||||
|
||||
Instance = this;
|
||||
|
||||
TestConnection();
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
@@ -33,6 +33,12 @@ public class TrellisClient : MonoBehaviour
|
||||
|
||||
}
|
||||
|
||||
private async void TestConnection()
|
||||
{
|
||||
var statusResp = await httpClient.GetAsync("status");
|
||||
Debug.Log("Trellis status: " + statusResp.StatusCode);
|
||||
}
|
||||
|
||||
|
||||
public async Task<byte[]> GenerateModel(
|
||||
string imageBase64,
|
||||
|
||||
Reference in New Issue
Block a user