anirudhs commited on
Commit
b602bef
·
verified ·
1 Parent(s): ffc29a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -4,9 +4,10 @@ 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, hf_token = hf_token, src="spaces")
9
- iface.queue().launch()
 
10
 
11
 
12
 
 
4
 
5
  hf_token = os.environ['HF_TOKEN']
6
 
7
+
8
+ iface = gr.load(name="anirudhs/web-researcher", api_key = hf_token, hf_token = hf_token, src="spaces")
9
+ interface = iface()
10
+ interface.launch(share=True)
11
 
12
 
13