tonyassi commited on
Commit
6fd7103
·
1 Parent(s): 35b70c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
 
3
- def chat(text, img, history):
4
- print('text', text)
5
- return text
6
 
7
- demo = gr.ChatInterface(fn=chat, title="Cheetah", additional_inputs=gr.Image(type="pil", label="Your Image"))
8
- demo.launch()
 
 
 
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()