Update app.py
Browse files
app.py
CHANGED
@@ -80,22 +80,22 @@ with gr.Blocks(css=css) as demo:
|
|
80 |
<h2 style="text-align: center;">LLM Agent from a Picture</h2>
|
81 |
<p style="text-align: center;">{description}</p>
|
82 |
""")
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
|
100 |
submit_btn.click(
|
101 |
fn = infer,
|
|
|
80 |
<h2 style="text-align: center;">LLM Agent from a Picture</h2>
|
81 |
<p style="text-align: center;">{description}</p>
|
82 |
""")
|
83 |
+
|
84 |
+
with gr.Row():
|
85 |
+
with gr.Column():
|
86 |
+
image_in = gr.Image(
|
87 |
+
label = "Image reference",
|
88 |
+
type = "filepath",
|
89 |
+
elem_id = "image-in"
|
90 |
+
)
|
91 |
+
submit_btn = gr.Button("Make LLM system from my pic !")
|
92 |
+
with gr.Column():
|
93 |
+
result = gr.Textbox(
|
94 |
+
label ="Suggested System",
|
95 |
+
lines = 10,
|
96 |
+
max_lines = 30,
|
97 |
+
elem_id = "suggested-system-prompt"
|
98 |
+
)
|
99 |
|
100 |
submit_btn.click(
|
101 |
fn = infer,
|