Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
# import lines go at the top! Any libraries I need to import go up ^
|
| 3 |
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
# declaring chatbot so that user can interact and see their conversation history and send new messages
|
| 6 |
|
| 7 |
chatbot.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
# import lines go at the top! Any libraries I need to import go up ^
|
| 3 |
|
| 4 |
+
#always need two parameters in hf
|
| 5 |
+
def echo(message, history)
|
| 6 |
+
return message
|
| 7 |
+
|
| 8 |
+
chatbot = gr.ChatInterface(echo)
|
| 9 |
# declaring chatbot so that user can interact and see their conversation history and send new messages
|
| 10 |
|
| 11 |
chatbot.launch()
|