Spaces:
Running
Running
Update gradio_app.py
Browse files- gradio_app.py +3 -1
gradio_app.py
CHANGED
@@ -10,9 +10,11 @@ def infer(text_prompt, action_prompt, profile: gr.OAuthProfile, oauth_token: gr.
|
|
10 |
client_secret = os.getenv('OAUTH_CLIENT_SECRET')
|
11 |
print(f"OAuth client secret env: {client_secret}")
|
12 |
|
|
|
|
|
13 |
inf_client = InferenceClient(
|
14 |
provider="fal-ai",
|
15 |
-
api_key=
|
16 |
)
|
17 |
|
18 |
# output is a PIL.Image object
|
|
|
10 |
client_secret = os.getenv('OAUTH_CLIENT_SECRET')
|
11 |
print(f"OAuth client secret env: {client_secret}")
|
12 |
|
13 |
+
manual_token = os.getenv('TOKEN_TO_INFER_API')
|
14 |
+
|
15 |
inf_client = InferenceClient(
|
16 |
provider="fal-ai",
|
17 |
+
api_key=manual_token
|
18 |
)
|
19 |
|
20 |
# output is a PIL.Image object
|