Teotonix commited on
Commit
839d3a0
·
verified ·
1 Parent(s): 33dd1db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -18,6 +18,16 @@ with gr.Blocks() as demo:
18
 
19
  btn.click(chat_fn, inputs=[msg, chatbot], outputs=chatbot)
20
 
 
 
 
 
 
 
 
 
 
 
21
  demo.launch(
22
  server_name="0.0.0.0",
23
  server_port=7860
 
18
 
19
  btn.click(chat_fn, inputs=[msg, chatbot], outputs=chatbot)
20
 
21
+ chatbot = gr.Chatbot(label="Maind.ai")
22
+
23
+ def chat_fn(message, history):
24
+ if history is None:
25
+ history = []
26
+
27
+ history.append((message, f"Test cevap: {message}"))
28
+ return history
29
+
30
+
31
  demo.launch(
32
  server_name="0.0.0.0",
33
  server_port=7860