hysts HF staff commited on
Commit
3396ac4
·
1 Parent(s): 1fa53f8
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+
4
+ def fn(message, history):
5
+ return message
6
+
7
+
8
+ gr.ChatInterface(
9
+ fn=fn,
10
+ cache_examples=True,
11
+ cache_mode="lazy",
12
+ examples=[["hey"], ["hello"]],
13
+ type="messages",
14
+ ).launch()