MDotstream commited on
Commit
3773a5a
·
verified ·
1 Parent(s): 7fa74cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -1,12 +1,15 @@
1
  import gradio as gr
2
 
3
- def chat(message):
4
- return f"Neo : {message}"
 
 
 
5
 
6
- demo = gr.Interface(
7
  fn=chat,
8
- inputs="text",
9
- outputs="text"
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()