mmsamiei commited on
Commit
e224121
·
verified ·
1 Parent(s): 4809ba9

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -256,8 +256,14 @@ with gr.Blocks() as demo:
256
  gr.Markdown("Click on the button of the item you prefer. The Elo ratings will be updated accordingly.")
257
 
258
  with gr.Row():
259
- img1 = gr.Image(value=modalities[current_modality][current_items[0]]["image"], label="Item 1")
260
- img2 = gr.Image(value=modalities[current_modality][current_items[1]]["image"], label="Item 2")
 
 
 
 
 
 
261
 
262
  with gr.Row():
263
  btn1 = gr.Button(current_items[0])
 
256
  gr.Markdown("Click on the button of the item you prefer. The Elo ratings will be updated accordingly.")
257
 
258
  with gr.Row():
259
+ img1 = gr.Image(value=modalities[current_modality][current_items[0]]["image"], label="Item 1",
260
+ width=500, # Set a fixed width
261
+ height=500) # Set a fixed height
262
+ img2 = gr.Image(value=modalities[current_modality][current_items[1]]["image"], label="Item 2",
263
+ width=500, # Set a fixed width
264
+ height=500) # Set a fixed height
265
+
266
+
267
 
268
  with gr.Row():
269
  btn1 = gr.Button(current_items[0])