Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,15 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def chat(message):
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
demo = gr.
|
| 7 |
fn=chat,
|
| 8 |
-
|
| 9 |
-
|
| 10 |
)
|
| 11 |
|
| 12 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def chat(message, history):
|
| 4 |
+
history = history or []
|
| 5 |
+
response = f"Neo : {message}"
|
| 6 |
+
history.append([message, response])
|
| 7 |
+
return history
|
| 8 |
|
| 9 |
+
demo = gr.ChatInterface(
|
| 10 |
fn=chat,
|
| 11 |
+
title="Neostudy AI",
|
| 12 |
+
description="Pose tes questions, Neo t'aide 📘"
|
| 13 |
)
|
| 14 |
|
| 15 |
demo.launch()
|