openfree commited on
Commit
72dc1f1
·
verified ·
1 Parent(s): c9c521c

Update gradio_ui.py

Browse files
Files changed (1) hide show
  1. gradio_ui.py +12 -4
gradio_ui.py CHANGED
@@ -368,17 +368,25 @@ def create_interface():
368
  )
369
  return interface
370
 
371
- def main():
372
- # CSS to hide footer
373
  css = """
374
  footer {
375
  visibility: hidden;
376
  }
377
  """
378
 
379
- # Launch the Gradio interface
 
 
 
 
 
 
 
 
 
380
  interface = create_interface()
381
- interface.launch(theme="Yntec/HaleyCH_Theme_Orange", css=css, ssr_mode=False)
382
 
383
  if __name__ == "__main__":
384
  main()
 
368
  )
369
  return interface
370
 
371
+ def create_interface():
 
372
  css = """
373
  footer {
374
  visibility: hidden;
375
  }
376
  """
377
 
378
+ # 테마와 CSS를 인터페이스 생성 시 설정
379
+ interface = gr.Interface(
380
+ # ... 기존 파라미터들 ...
381
+ theme="Yntec/HaleyCH_Theme_Orange",
382
+ css=css
383
+ )
384
+ return interface
385
+
386
+ def main():
387
+ # launch()에서는 테마 설정을 제거
388
  interface = create_interface()
389
+ interface.launch(ssr_mode=False)
390
 
391
  if __name__ == "__main__":
392
  main()