dawood HF staff commited on
Commit
1920772
1 Parent(s): b40c6d8

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def generate(x):
4
+ return [
5
+ (f"abc ![](/file={x})", "def"),
6
+ ("ghi", "jkl")
7
+ ]
8
+
9
+ with gr.Blocks() as demo:
10
+ i = gr.Image(type="filepath")
11
+ c = gr.Chatbot()
12
+ i.change(generate, i, c)
13
+
14
+ demo.launch()