Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ Please [create a Discussion](https://huggingface.co/spaces/{SPACE_ID}/discussion
|
|
129 |
ABOUT = f"""
|
130 |
## 📄 About
|
131 |
|
132 |
-
The 3D Arena evaluates leading 3D generation model. It is inspired by
|
133 |
|
134 |
### The Arena
|
135 |
|
@@ -340,7 +340,7 @@ def synthandreturn(image):
|
|
340 |
|
341 |
return (
|
342 |
image,
|
343 |
-
"
|
344 |
gr.update(visible=True), # r2
|
345 |
mdl1, # model1
|
346 |
mdl2, # model2
|
@@ -354,7 +354,7 @@ def synthandreturn(image):
|
|
354 |
)
|
355 |
|
356 |
def clear_stuff():
|
357 |
-
return "", "
|
358 |
|
359 |
with gr.Blocks() as vote:
|
360 |
useridstate = gr.State()
|
@@ -362,7 +362,7 @@ with gr.Blocks() as vote:
|
|
362 |
with gr.Group():
|
363 |
with gr.Row():
|
364 |
image = gr.Image(container=False, type='pil', show_label=False, min_width=0)
|
365 |
-
btn = gr.Button("
|
366 |
model1 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=False)
|
367 |
model2 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=False)
|
368 |
with gr.Row(visible=False) as r2:
|
|
|
129 |
ABOUT = f"""
|
130 |
## 📄 About
|
131 |
|
132 |
+
The 3D Arena evaluates leading 3D generation model. It is inspired primarily by [TTS-Arena](https://huggingface.co/spaces/TTS-AGI/TTS-Arena) and LMsys's [Chatbot Arena](https://chat.lmsys.org/).
|
133 |
|
134 |
### The Arena
|
135 |
|
|
|
340 |
|
341 |
return (
|
342 |
image,
|
343 |
+
"Generate",
|
344 |
gr.update(visible=True), # r2
|
345 |
mdl1, # model1
|
346 |
mdl2, # model2
|
|
|
354 |
)
|
355 |
|
356 |
def clear_stuff():
|
357 |
+
return "", "Generate", gr.update(visible=False), '', '', gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
|
358 |
|
359 |
with gr.Blocks() as vote:
|
360 |
useridstate = gr.State()
|
|
|
362 |
with gr.Group():
|
363 |
with gr.Row():
|
364 |
image = gr.Image(container=False, type='pil', show_label=False, min_width=0)
|
365 |
+
btn = gr.Button("Generate", variant='primary')
|
366 |
model1 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=False)
|
367 |
model2 = gr.Textbox(interactive=False, lines=1, max_lines=1, visible=False)
|
368 |
with gr.Row(visible=False) as r2:
|