fffiloni commited on
Commit
5a3e983
·
verified ·
1 Parent(s): b67470b

Update gradio_app.py

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