fffiloni commited on
Commit
533e076
·
verified ·
1 Parent(s): cef2d20

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. 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=oauth_token.token
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