Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,10 @@
|
|
2 |
import gradio as gr
|
3 |
|
4 |
def response(message):
|
5 |
-
response = "You said: " message
|
6 |
return response
|
7 |
|
|
|
8 |
"""class ChatWrapper:
|
9 |
|
10 |
def __call__(
|
@@ -34,7 +35,6 @@ with block:
|
|
34 |
message = gr.Textbox(
|
35 |
label="What would you like to talk about?",
|
36 |
type = "text",
|
37 |
-
fun = response
|
38 |
)
|
39 |
|
40 |
with gr.Row():
|
@@ -49,6 +49,7 @@ with block:
|
|
49 |
inputs=message,
|
50 |
)
|
51 |
|
|
|
52 |
|
53 |
# submit.click(chat, inputs=[message], outputs=[chatbot])
|
54 |
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
def response(message):
|
5 |
+
response = "You said: " + message
|
6 |
return response
|
7 |
|
8 |
+
|
9 |
"""class ChatWrapper:
|
10 |
|
11 |
def __call__(
|
|
|
35 |
message = gr.Textbox(
|
36 |
label="What would you like to talk about?",
|
37 |
type = "text",
|
|
|
38 |
)
|
39 |
|
40 |
with gr.Row():
|
|
|
49 |
inputs=message,
|
50 |
)
|
51 |
|
52 |
+
fn = response
|
53 |
|
54 |
# submit.click(chat, inputs=[message], outputs=[chatbot])
|
55 |
|