Spaces:
Running
Running
Update app.py
Browse files
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],
|
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 = {
|