fffiloni commited on
Commit
57cf754
·
verified ·
1 Parent(s): bf792ee

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +2 -2
gradio_app.py CHANGED
@@ -4,11 +4,11 @@ from gradio_client import Client, handle_file
4
 
5
 
6
  def infer(text_prompt, action_prompt, oauth_token: gr.OAuthToken):
7
- print(oauth_token.token)
8
 
9
  inf_client = InferenceClient(
10
  provider="replicate",
11
- #token=login
12
  )
13
 
14
  # output is a PIL.Image object
 
4
 
5
 
6
  def infer(text_prompt, action_prompt, oauth_token: gr.OAuthToken):
7
+
8
 
9
  inf_client = InferenceClient(
10
  provider="replicate",
11
+ token=oauth_token.token
12
  )
13
 
14
  # output is a PIL.Image object