Spaces:
Running
Running
Peiran
commited on
Commit
·
5229201
1
Parent(s):
e2b9c18
Update UI and new properties
Browse files
app.py
CHANGED
@@ -351,6 +351,7 @@ with gr.Blocks() as demo:
|
|
351 |
gr.Markdown("## CV Agent Arena 🎨🤖")
|
352 |
with gr.Row():
|
353 |
with gr.Column():
|
|
|
354 |
original = gr.Image(type="pil", label="Upload Original Image")
|
355 |
prompt = gr.Textbox(lines=2, label="Prompt",
|
356 |
placeholder="e.g. Make it look like a sunny day")
|
@@ -364,7 +365,7 @@ with gr.Blocks() as demo:
|
|
364 |
|
365 |
run_btn.click(
|
366 |
fn=generate_and_store,
|
367 |
-
inputs=[original, prompt, agent1, agent2],
|
368 |
outputs=[out1, out2],
|
369 |
show_api=False
|
370 |
)
|
@@ -394,7 +395,9 @@ with gr.Blocks() as demo:
|
|
394 |
)
|
395 |
|
396 |
with gr.Row():
|
397 |
-
gr.Markdown(
|
|
|
|
|
398 |
with gr.Column():
|
399 |
a1_follow = gr.Radio([0,1,2,3,4,5], label="Follow Prompt")
|
400 |
a1_creativity = gr.Radio([0,1,2,3,4,5], label="Creativity")
|
|
|
351 |
gr.Markdown("## CV Agent Arena 🎨🤖")
|
352 |
with gr.Row():
|
353 |
with gr.Column():
|
354 |
+
task_dropdown = gr.Dropdown(choices=TASK_CHOICES, label="Task Category", type="index")
|
355 |
original = gr.Image(type="pil", label="Upload Original Image")
|
356 |
prompt = gr.Textbox(lines=2, label="Prompt",
|
357 |
placeholder="e.g. Make it look like a sunny day")
|
|
|
365 |
|
366 |
run_btn.click(
|
367 |
fn=generate_and_store,
|
368 |
+
inputs=[task_dropdown, original, prompt, agent1, agent2],
|
369 |
outputs=[out1, out2],
|
370 |
show_api=False
|
371 |
)
|
|
|
395 |
)
|
396 |
|
397 |
with gr.Row():
|
398 |
+
gr.Markdown(
|
399 |
+
"<h2 style='text-align: center;'>Please Evaluate the Original Image from 3 Aspects</h2>"
|
400 |
+
)
|
401 |
with gr.Column():
|
402 |
a1_follow = gr.Radio([0,1,2,3,4,5], label="Follow Prompt")
|
403 |
a1_creativity = gr.Radio([0,1,2,3,4,5], label="Creativity")
|