Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -53,26 +53,26 @@ def sentence_builder(animal, place):
|
|
53 |
|
54 |
# gradio block
|
55 |
|
56 |
-
with gr.Blocks(theme='
|
57 |
-
title ="
|
58 |
with gr.Row():
|
59 |
image_box = gr.Image(type="filepath")
|
60 |
|
61 |
-
|
62 |
-
scale = 2,
|
63 |
-
height=750
|
64 |
-
)
|
65 |
text_box = gr.Dropdown(
|
66 |
-
["what is in the image",
|
|
|
|
|
|
|
67 |
)
|
68 |
|
69 |
btn = gr.Button("Submit")
|
70 |
clicked = btn.click(query_message,
|
71 |
-
[
|
72 |
-
|
73 |
).then(llm_response,
|
74 |
-
[
|
75 |
-
|
76 |
)
|
77 |
gr.Markdown("""
|
78 |
# Multimodal Chain-of-Thought Reasoning in Language Models
|
|
|
53 |
|
54 |
# gradio block
|
55 |
|
56 |
+
with gr.Blocks(theme='snehilsanyal/scikit-learn') as app1:
|
57 |
+
title = gr.Markdown("## COT ##")
|
58 |
with gr.Row():
|
59 |
image_box = gr.Image(type="filepath")
|
60 |
|
61 |
+
outputbox = gr.Textbox(label="Output")
|
|
|
|
|
|
|
62 |
text_box = gr.Dropdown(
|
63 |
+
["what is in the image",
|
64 |
+
"provide alternative title for the image",
|
65 |
+
"how many birds can be seen in the picture?"],
|
66 |
+
label="Prompts", info="Will add more animals later!"
|
67 |
)
|
68 |
|
69 |
btn = gr.Button("Submit")
|
70 |
clicked = btn.click(query_message,
|
71 |
+
[outputbox,text_box,image_box],
|
72 |
+
outputbox
|
73 |
).then(llm_response,
|
74 |
+
[outputbox,text_box,image_box],
|
75 |
+
outputbox
|
76 |
)
|
77 |
gr.Markdown("""
|
78 |
# Multimodal Chain-of-Thought Reasoning in Language Models
|