Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -32,18 +32,18 @@ def respond(message, history: list[tuple[str, str]], system_message, max_tokens,
|
|
32 |
|
33 |
chatbot = gr.Chatbot(height=600)
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
)
|
47 |
|
48 |
if __name__ == "__main__":
|
49 |
-
|
|
|
32 |
|
33 |
chatbot = gr.Chatbot(height=600)
|
34 |
|
35 |
+
|
36 |
+
|
37 |
+
def chat_function(message):
|
38 |
+
return "Response to: " + message
|
39 |
+
|
40 |
+
chat_interface = gr.Interface(
|
41 |
+
fn=chat_function,
|
42 |
+
inputs=gr.Textbox(),
|
43 |
+
outputs=gr.Textbox(),
|
44 |
+
title="Simple Chatbot",
|
45 |
+
description="This is a simple chatbot example."
|
46 |
)
|
47 |
|
48 |
if __name__ == "__main__":
|
49 |
+
chat_interface.launch()
|