evijit HF Staff commited on
Commit
9cf7326
Β·
verified Β·
1 Parent(s): 2dd7beb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -2
app.py CHANGED
@@ -260,11 +260,37 @@ class AIEvaluationForm:
260
  # theme=gr.themes.Soft(),
261
  css="""
262
  .gradio-container {
263
- max-width: 1200px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
264
  }
265
  .accordion-header {
266
  background-color: #f0f0f0 !important;
267
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  """
269
  ) as demo:
270
 
@@ -421,7 +447,13 @@ def main():
421
  )
422
  print(f"❓ Total evaluation questions: {total_questions}")
423
 
424
- demo.launch(ssr_mode=False)
 
 
 
 
 
 
425
 
426
  except FileNotFoundError as e:
427
  print(f"❌ Error: {e}")
 
260
  # theme=gr.themes.Soft(),
261
  css="""
262
  .gradio-container {
263
+ max-width: 1400px !important;
264
+ margin: 0 auto !important;
265
+ padding: 20px !important;
266
+ width: 95% !important;
267
+ }
268
+ .main {
269
+ max-width: 1400px !important;
270
+ margin: 0 auto !important;
271
+ width: 100% !important;
272
+ }
273
+ .container {
274
+ max-width: 1400px !important;
275
+ margin: 0 auto !important;
276
+ width: 100% !important;
277
  }
278
  .accordion-header {
279
  background-color: #f0f0f0 !important;
280
  }
281
+ .block {
282
+ width: 100% !important;
283
+ }
284
+ /* Ensure form elements use full width */
285
+ .form {
286
+ width: 100% !important;
287
+ }
288
+ /* Center the entire app */
289
+ #root {
290
+ display: flex !important;
291
+ justify-content: center !important;
292
+ width: 100% !important;
293
+ }
294
  """
295
  ) as demo:
296
 
 
447
  )
448
  print(f"❓ Total evaluation questions: {total_questions}")
449
 
450
+ demo.launch(
451
+ ssr_mode=False,
452
+ share=False,
453
+ inbrowser=False,
454
+ show_error=True,
455
+ quiet=False
456
+ )
457
 
458
  except FileNotFoundError as e:
459
  print(f"❌ Error: {e}")