Spaces:
Build error
Build error
Update gradio_app.py
Browse files- gradio_app.py +4 -2
gradio_app.py
CHANGED
|
@@ -1,11 +1,13 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
from huggingface_hub import InferenceClient
|
| 3 |
from gradio_client import Client, handle_file
|
| 4 |
|
| 5 |
|
| 6 |
def infer(text_prompt, action_prompt, profile: gr.OAuthProfile, oauth_token: gr.OAuthToken):
|
| 7 |
-
|
| 8 |
-
print(oauth_token.token)
|
|
|
|
| 9 |
|
| 10 |
inf_client = InferenceClient(
|
| 11 |
provider="fal-ai",
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import os
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
from gradio_client import Client, handle_file
|
| 5 |
|
| 6 |
|
| 7 |
def infer(text_prompt, action_prompt, profile: gr.OAuthProfile, oauth_token: gr.OAuthToken):
|
| 8 |
+
|
| 9 |
+
print(f"OAuth token: {oauth_token.token}")
|
| 10 |
+
print(f"OAuth client secret env: {os.getenv("OAUTH_CLIENT_SECRET")}")
|
| 11 |
|
| 12 |
inf_client = InferenceClient(
|
| 13 |
provider="fal-ai",
|