Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,9 +22,9 @@ chat = ChatWrapper()"""
|
|
22 |
|
23 |
chatbot = gr.Chatbot()
|
24 |
|
25 |
-
def
|
26 |
-
|
27 |
-
|
28 |
|
29 |
|
30 |
block = gr.Blocks(css=".gradio-container {background-color: lightblue}")
|
@@ -56,6 +56,6 @@ with block:
|
|
56 |
inputs=message,
|
57 |
)
|
58 |
|
59 |
-
|
60 |
|
61 |
block.launch(debug=True)
|
|
|
22 |
|
23 |
chatbot = gr.Chatbot()
|
24 |
|
25 |
+
def get_response(message)
|
26 |
+
response = (f"You entered: {inp}")
|
27 |
+
return response
|
28 |
|
29 |
|
30 |
block = gr.Blocks(css=".gradio-container {background-color: lightblue}")
|
|
|
56 |
inputs=message,
|
57 |
)
|
58 |
|
59 |
+
submit.click(get_response, inputs=[message], outputs=[chatbot])
|
60 |
|
61 |
block.launch(debug=True)
|