Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def chat(
|
| 4 |
-
print('text', text)
|
| 5 |
-
return text
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def chat(img, question'):
|
|
|
|
|
|
|
| 4 |
|
| 5 |
+
return question
|
| 6 |
+
|
| 7 |
+
iface = gr.Interface(fn=chat, inputs=[gr.Image(type="pil"), "text"], outputs="text")
|
| 8 |
+
iface.launch()
|