toninio19 commited on
Commit
116fb8a
·
verified ·
1 Parent(s): d23f3e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -16
app.py CHANGED
@@ -158,7 +158,20 @@ class VideoArenaManager:
158
  def create_arena_interface():
159
  manager = VideoArenaManager()
160
 
161
- with gr.Blocks(title="Video Model Ranking Arena") as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  gr.Markdown(
163
  "# Video Model Ranking Arena\n\nCompare generated videos and help determine which model performs best!"
164
  )
@@ -193,21 +206,6 @@ def create_arena_interface():
193
  elem_classes="invisible-textbox",
194
  )
195
 
196
- # Add custom CSS to hide the textbox but keep it functional
197
- demo.style(
198
- """
199
- .invisible-textbox {
200
- position: fixed;
201
- opacity: 0;
202
- pointer-events: auto;
203
- width: 0;
204
- height: 0;
205
- padding: 0;
206
- margin: 0;
207
- }
208
- """
209
- )
210
-
211
  # Remove the initial tab declaration and wrap the rankings content in a Row instead
212
  rankings_section = gr.Row(visible=False)
213
  with rankings_section:
 
158
  def create_arena_interface():
159
  manager = VideoArenaManager()
160
 
161
+ with gr.Blocks(
162
+ title="Video Model Ranking Arena",
163
+ css="""
164
+ .invisible-textbox {
165
+ position: fixed;
166
+ opacity: 0;
167
+ pointer-events: auto;
168
+ width: 0;
169
+ height: 0;
170
+ padding: 0;
171
+ margin: 0;
172
+ }
173
+ """,
174
+ ) as demo:
175
  gr.Markdown(
176
  "# Video Model Ranking Arena\n\nCompare generated videos and help determine which model performs best!"
177
  )
 
206
  elem_classes="invisible-textbox",
207
  )
208
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  # Remove the initial tab declaration and wrap the rankings content in a Row instead
210
  rankings_section = gr.Row(visible=False)
211
  with rankings_section: