NoLev commited on
Commit
26846f0
·
1 Parent(s): 141bb7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -29,9 +29,10 @@ def chatbot(input_text):
29
  response = index.query(input_text, response_mode="compact")
30
  return response.response
31
 
32
- gr.Interface(fn=chatbot,
33
  inputs=gr.components.Textbox(lines=7, label="Enter your text"),
34
  outputs="text",
35
- title="NoLev Astra Diagnosis Assistant").launch()
36
 
37
- index = construct_index("docs")
 
 
29
  response = index.query(input_text, response_mode="compact")
30
  return response.response
31
 
32
+ iface = gr.Interface(fn=chatbot,
33
  inputs=gr.components.Textbox(lines=7, label="Enter your text"),
34
  outputs="text",
35
+ title="NoLev Astra Diagnosis Assistant")
36
 
37
+ index = construct_index("docs")
38
+ iface.launch()