Add file
Browse files
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()
|