Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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")
|
| 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()
|