RamAnanth1 commited on
Commit
94cad1d
β€’
1 Parent(s): c6becc1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 LMsys's [Chatbot Arena](https://chat.lmsys.org/) and [TTS-Arena](https://huggingface.co/spaces/TTS-AGI/TTS-Arena).
133
 
134
  ### The Arena
135
 
@@ -340,7 +340,7 @@ def synthandreturn(image):
340
 
341
  return (
342
  image,
343
- "Synthesize",
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 "", "Synthesize", 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,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("Synthesize", 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:
 
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: