Spaces:
Runtime error
Runtime error
Commit
·
cdb3da1
1
Parent(s):
1065e57
Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,7 @@ def generate_response(user_input):
|
|
13 |
return response
|
14 |
|
15 |
input_textbox = gr.Textbox(lines=10, label="Enter your text here")
|
16 |
-
output_textbox = gr.Textbox(label="Chatbot Response")
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
gr.Interface(fn=generate_response, inputs=input_textbox, outputs=output_textbox, title=title, description=description).launch()
|
|
|
13 |
return response
|
14 |
|
15 |
input_textbox = gr.Textbox(lines=10, label="Enter your text here")
|
16 |
+
output_textbox = gr.outputs.Textbox(label="Chatbot Response")
|
17 |
|
18 |
+
chatbot_interface = gr.Interface(fn=generate_response, inputs=input_textbox, outputs=output_textbox, title="Hugging Face BART Chatbot", description="This chatbot uses the Hugging Face BART model to generate responses based on user input.")
|
19 |
+
chatbot_interface.launch()
|
|
|
|