Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -30,16 +30,16 @@ def generate_response(image, question):
|
|
30 |
generated_text += new_text
|
31 |
return generated_text
|
32 |
|
|
|
33 |
# Create a Gradio interface
|
34 |
iface = gr.Interface(
|
35 |
fn=generate_response,
|
36 |
inputs=[gr.Image(type="pil"), "text"],
|
37 |
outputs="text",
|
38 |
-
title="Visual Question Answering -
|
39 |
description="Input an image and a question related to the image to receive a response.",
|
40 |
-
theme='abidlabs/dracula_revamped'
|
41 |
-
footer=gr.HTML(footer)
|
42 |
)
|
43 |
|
44 |
# Launch the app
|
45 |
-
iface.launch(debug=True)
|
|
|
30 |
generated_text += new_text
|
31 |
return generated_text
|
32 |
|
33 |
+
|
34 |
# Create a Gradio interface
|
35 |
iface = gr.Interface(
|
36 |
fn=generate_response,
|
37 |
inputs=[gr.Image(type="pil"), "text"],
|
38 |
outputs="text",
|
39 |
+
title="Visual Question Answering - Financial charts analysis",
|
40 |
description="Input an image and a question related to the image to receive a response.",
|
41 |
+
theme='abidlabs/dracula_revamped'
|
|
|
42 |
)
|
43 |
|
44 |
# Launch the app
|
45 |
+
iface.launch(debug=True)
|