hsuwill000 commited on
Commit
84cd86a
·
verified ·
1 Parent(s): 1c5bbef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ repo_index = 0 # This will keep track of the current repository
20
  def infer_gradio(prompt: str):
21
  global count, repo_index
22
  # Create a Client instance to communicate with the Hugging Face space
23
- client = Client(repos[repo_index], api_key=api_key)
24
 
25
  # Prepare the inputs for the prediction
26
  inputs = {
 
20
  def infer_gradio(prompt: str):
21
  global count, repo_index
22
  # Create a Client instance to communicate with the Hugging Face space
23
+ client = Client(repos[repo_index], hf_token=api_key)
24
 
25
  # Prepare the inputs for the prediction
26
  inputs = {