AUXteam commited on
Commit
3893aae
·
verified ·
1 Parent(s): 58d52ab

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- self.client = GradioClient("victor/websearch", hf_token=hf_token if hf_token else None)
 
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