KingNish commited on
Commit
610e879
1 Parent(s): 72391b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -13,7 +13,7 @@ def fetch_firefox_documentation(query):
13
 
14
  results = data.get('response')
15
 
16
- return results
17
  else:
18
  return ["Error: Failed to fetch data"]
19
 
@@ -21,9 +21,10 @@ def fetch_firefox_documentation(query):
21
  iface = gr.Interface(
22
  fn=fetch_firefox_documentation,
23
  inputs=gr.Textbox(label="Search Query", placeholder="Enter your search query..."),
24
- outputs=gr.Textbox(label="Response"),
25
  title="Search Tool for Hf Chat",
26
- description="You can try it from here. https://hf.co/chat/tools/66eaa0f93d0af6e84bc3c447"
 
27
  )
28
 
29
  # Launch the interface
 
13
 
14
  results = data.get('response')
15
 
16
+ return results, results
17
  else:
18
  return ["Error: Failed to fetch data"]
19
 
 
21
  iface = gr.Interface(
22
  fn=fetch_firefox_documentation,
23
  inputs=gr.Textbox(label="Search Query", placeholder="Enter your search query..."),
24
+ outputs=[gr.Markdown(label="Response"),gr.Textbox(label="Response", visible=False)],
25
  title="Search Tool for Hf Chat",
26
+ description="You can try it from here. https://hf.co/chat/tools/66eaa0f93d0af6e84bc3c447",
27
+ concurrency_limit=10
28
  )
29
 
30
  # Launch the interface