Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1764,9 +1764,9 @@ def create_ui():
|
|
1764 |
description = """<p>Gradio demo for EyeSee Anything in Art, image to dense captioning generation with various language styles. To use it, simply upload your image, or click one of the examples to load them. """
|
1765 |
|
1766 |
examples = [
|
1767 |
-
["test_images/1.The Ambassadors.jpg","test_images/task1.jpg","task 1"],
|
1768 |
-
["test_images/2.Football Players.jpg","test_images/task2.jpg","task 2"],
|
1769 |
-
["test_images/3.Along the River during the Qingming Festival.jpeg","test_images/task3.jpg","task 3"],
|
1770 |
# ["test_images/test4.jpg"],
|
1771 |
# ["test_images/test5.jpg"],
|
1772 |
# ["test_images/Picture5.png"],
|
@@ -1821,8 +1821,8 @@ def create_ui():
|
|
1821 |
)
|
1822 |
with gr.Row():
|
1823 |
with gr.Column(scale=1,min_width=50,visible=False) as instruct:
|
1824 |
-
task_instuction=gr.Image(type="pil", interactive=True, elem_classes="task_instruct",height=
|
1825 |
-
task_instuction2=gr.Image(type="pil", interactive=True, elem_classes="task_instruct2",height=
|
1826 |
with gr.Column(scale=6):
|
1827 |
with gr.Column(visible=False) as modules_not_need_gpt:
|
1828 |
|
@@ -2034,7 +2034,7 @@ def create_ui():
|
|
2034 |
task_type = gr.Textbox(visible=False)
|
2035 |
gr.Examples(
|
2036 |
examples=examples,
|
2037 |
-
inputs=[example_image,task_instuction,task_type],
|
2038 |
)
|
2039 |
|
2040 |
|
@@ -2685,7 +2685,7 @@ def create_ui():
|
|
2685 |
session_type.change(
|
2686 |
session_change,
|
2687 |
[],
|
2688 |
-
[image_input, chatbot, state, click_state, paragraph, origin_image,history_log,log_state,task_instuction]
|
2689 |
)
|
2690 |
|
2691 |
# upvote_btn.click(
|
|
|
1764 |
description = """<p>Gradio demo for EyeSee Anything in Art, image to dense captioning generation with various language styles. To use it, simply upload your image, or click one of the examples to load them. """
|
1765 |
|
1766 |
examples = [
|
1767 |
+
["test_images/1.The Ambassadors.jpg","test_images/task1.jpg","task 1","test_images/task5.jpg"],
|
1768 |
+
["test_images/2.Football Players.jpg","test_images/task2.jpg","task 2","test_images/task5.jpg"],
|
1769 |
+
["test_images/3.Along the River during the Qingming Festival.jpeg","test_images/task3.jpg","task 3","test_images/task5.jpg"],
|
1770 |
# ["test_images/test4.jpg"],
|
1771 |
# ["test_images/test5.jpg"],
|
1772 |
# ["test_images/Picture5.png"],
|
|
|
1821 |
)
|
1822 |
with gr.Row():
|
1823 |
with gr.Column(scale=1,min_width=50,visible=False) as instruct:
|
1824 |
+
task_instuction=gr.Image(type="pil", interactive=True, elem_classes="task_instruct",height=540,label=None)
|
1825 |
+
task_instuction2=gr.Image(type="pil", interactive=True, elem_classes="task_instruct2",height=110,label=None)
|
1826 |
with gr.Column(scale=6):
|
1827 |
with gr.Column(visible=False) as modules_not_need_gpt:
|
1828 |
|
|
|
2034 |
task_type = gr.Textbox(visible=False)
|
2035 |
gr.Examples(
|
2036 |
examples=examples,
|
2037 |
+
inputs=[example_image,task_instuction,task_type,task_instuction2],
|
2038 |
)
|
2039 |
|
2040 |
|
|
|
2685 |
session_type.change(
|
2686 |
session_change,
|
2687 |
[],
|
2688 |
+
[image_input, chatbot, state, click_state, paragraph, origin_image,history_log,log_state,task_instuction,task_instuction2]
|
2689 |
)
|
2690 |
|
2691 |
# upvote_btn.click(
|