anirudhs commited on
Commit
48b8f88
·
verified ·
1 Parent(s): 2261f70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -1,8 +1,13 @@
 
1
  import gradio as gr
2
- import os
3
 
4
  hf_token = os.environ['HF_TOKEN']
5
 
6
- iface = gr.load(name="anirudhs/web-researcher", hf_token=hf_token, src="spaces")
7
- iface.queue(api_open=False).launch(show_api=False)
 
 
 
 
8
 
 
1
+
2
  import gradio as gr
3
+ import os
4
 
5
  hf_token = os.environ['HF_TOKEN']
6
 
7
+ with gr.Blocks() as demo:
8
+ iface = gr.load(name="anirudhs/web-researcher", api_key = hf_token, h$
9
+ iface.queue(concurrency_count=10, max_size=20)
10
+ iface.launch()
11
+
12
+
13