Commit
·
c897c5e
1
Parent(s):
f69bea2
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def blip2_interface(image, prompted_caption_text, vqa_question, chat_context):
|
|
41 |
|
42 |
# Define Gradio input and output components
|
43 |
image_input = gr.inputs.Image(type="numpy")
|
44 |
-
text_input = gr.inputs.Text()
|
45 |
output_text = gr.outputs.Textbox()
|
46 |
|
47 |
# Create Gradio interface
|
@@ -54,4 +54,4 @@ iface = gr.Interface(
|
|
54 |
)
|
55 |
|
56 |
if __name__ == "__main__":
|
57 |
-
iface.launch()
|
|
|
41 |
|
42 |
# Define Gradio input and output components
|
43 |
image_input = gr.inputs.Image(type="numpy")
|
44 |
+
text_input = gr.inputs.Textbox() # Use gr.inputs.Textbox() instead of gr.inputs.Text()
|
45 |
output_text = gr.outputs.Textbox()
|
46 |
|
47 |
# Create Gradio interface
|
|
|
54 |
)
|
55 |
|
56 |
if __name__ == "__main__":
|
57 |
+
iface.launch()
|