Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,11 +37,11 @@ def chatbot(input_text):
|
|
| 37 |
|
| 38 |
#Creating the web UIusing gradio
|
| 39 |
iface = gradio.Interface(fn=chatbot,
|
| 40 |
-
inputs=gradio.inputs.Textbox(lines=
|
| 41 |
outputs="text",
|
| 42 |
-
title="Custom-trained AI Chatbot")
|
| 43 |
|
| 44 |
-
#Constructing indexes based on the documents in
|
| 45 |
#This can be skipped if you have already trained your app and need to re-run it
|
| 46 |
index = construct_index("trainingData")
|
| 47 |
|
|
|
|
| 37 |
|
| 38 |
#Creating the web UIusing gradio
|
| 39 |
iface = gradio.Interface(fn=chatbot,
|
| 40 |
+
inputs=gradio.inputs.Textbox(lines=2, label="Enter your question here"),
|
| 41 |
outputs="text",
|
| 42 |
+
title="My Custom-trained AI Chatbot")
|
| 43 |
|
| 44 |
+
#Constructing indexes based on the documents in trainingData folder
|
| 45 |
#This can be skipped if you have already trained your app and need to re-run it
|
| 46 |
index = construct_index("trainingData")
|
| 47 |
|