hysts HF Staff commited on
Commit
4d35acc
·
verified ·
1 Parent(s): ebed970

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def echo(message, history):
4
+ return f"Echo: {message}"
5
+
6
+ gr.ChatInterface(
7
+ fn=echo,
8
+ examples=["What is the capital of France?"],
9
+ cache_examples=False,
10
+ ).launch()