Spaces:
Running
Running
Update gradio_app.py
Browse files- gradio_app.py +2 -2
gradio_app.py
CHANGED
@@ -4,11 +4,11 @@ from gradio_client import Client, handle_file
|
|
4 |
|
5 |
|
6 |
def infer(text_prompt, action_prompt, oauth_token: gr.OAuthToken):
|
7 |
-
|
8 |
|
9 |
inf_client = InferenceClient(
|
10 |
provider="replicate",
|
11 |
-
|
12 |
)
|
13 |
|
14 |
# output is a PIL.Image object
|
|
|
4 |
|
5 |
|
6 |
def infer(text_prompt, action_prompt, oauth_token: gr.OAuthToken):
|
7 |
+
|
8 |
|
9 |
inf_client = InferenceClient(
|
10 |
provider="replicate",
|
11 |
+
token=oauth_token.token
|
12 |
)
|
13 |
|
14 |
# output is a PIL.Image object
|