Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def generate(x):
|
| 4 |
+
return [
|
| 5 |
+
(f"abc ", "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()
|