Spaces:
Paused
Paused
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -164,7 +164,8 @@ class SimpleBrowser:
|
|
| 164 |
try:
|
| 165 |
# victor/websearch is a public space, but we can pass token if available
|
| 166 |
hf_token = os.getenv("HF_TOKEN", "")
|
| 167 |
-
|
|
|
|
| 168 |
except Exception as e:
|
| 169 |
print(f"Error initializing Gradio client: {e}")
|
| 170 |
self.client = None
|
|
|
|
| 164 |
try:
|
| 165 |
# victor/websearch is a public space, but we can pass token if available
|
| 166 |
hf_token = os.getenv("HF_TOKEN", "")
|
| 167 |
+
# Use 'token' instead of 'hf_token' for Gradio Client
|
| 168 |
+
self.client = GradioClient("victor/websearch", token=hf_token if hf_token else None)
|
| 169 |
except Exception as e:
|
| 170 |
print(f"Error initializing Gradio client: {e}")
|
| 171 |
self.client = None
|