Spaces:
Sleeping
Sleeping
Divyam Sharma
commited on
Commit
·
3982129
1
Parent(s):
2e6449d
Endpoints
Browse files
app.py
CHANGED
@@ -29,9 +29,11 @@ def get_completion(inputs, parameters=None, ENDPOINT_URL=""):
|
|
29 |
return json.loads(response.content.decode("utf-8"))
|
30 |
|
31 |
#text-to-image
|
32 |
-
TTI_ENDPOINT =
|
|
|
33 |
#image-to-text
|
34 |
-
ITT_ENDPOINT =
|
|
|
35 |
|
36 |
## Building your game with `gr.Blocks()`
|
37 |
|
|
|
29 |
return json.loads(response.content.decode("utf-8"))
|
30 |
|
31 |
#text-to-image
|
32 |
+
TTI_ENDPOINT = "http://jupyter-api-proxy.internal.dlai/rev-proxy/huggingface/itt"
|
33 |
+
# os.environ['HF_API_TTI_BASE']
|
34 |
#image-to-text
|
35 |
+
ITT_ENDPOINT = "http://jupyter-api-proxy.internal.dlai/rev-proxy/huggingface/tti"
|
36 |
+
# os.environ['HF_API_ITT_BASE']
|
37 |
|
38 |
## Building your game with `gr.Blocks()`
|
39 |
|