Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,17 +76,16 @@ def sentence_builder(animal, place):
|
|
| 76 |
|
| 77 |
with gr.Blocks(theme='snehilsanyal/scikit-learn') as app1:
|
| 78 |
title = gr.Markdown("## COT ##")
|
| 79 |
-
with gr.Column():
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
outputbox = gr.Textbox(label="Output")
|
| 83 |
text_box = gr.Dropdown(
|
| 84 |
["what is in the image",
|
| 85 |
"provide alternative title for the image",
|
| 86 |
"how many birds can be seen in the picture?"],
|
| 87 |
label="Prompts", info="Will add more animals later!"
|
| 88 |
)
|
| 89 |
-
|
|
|
|
| 90 |
btn = gr.Button("Submit")
|
| 91 |
clicked = btn.click(output_query_message,
|
| 92 |
[text_box,image_box],
|
|
|
|
| 76 |
|
| 77 |
with gr.Blocks(theme='snehilsanyal/scikit-learn') as app1:
|
| 78 |
title = gr.Markdown("## COT ##")
|
| 79 |
+
with gr.Column():
|
| 80 |
+
outputbox = gr.Textbox(label="AI prediction here...")
|
|
|
|
|
|
|
| 81 |
text_box = gr.Dropdown(
|
| 82 |
["what is in the image",
|
| 83 |
"provide alternative title for the image",
|
| 84 |
"how many birds can be seen in the picture?"],
|
| 85 |
label="Prompts", info="Will add more animals later!"
|
| 86 |
)
|
| 87 |
+
image_box = gr.Image(type="filepath")
|
| 88 |
+
|
| 89 |
btn = gr.Button("Submit")
|
| 90 |
clicked = btn.click(output_query_message,
|
| 91 |
[text_box,image_box],
|