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