Spaces:
Running
on
Zero
Running
on
Zero
Update gradio_ui.py
Browse files- gradio_ui.py +12 -4
gradio_ui.py
CHANGED
@@ -368,17 +368,25 @@ def create_interface():
|
|
368 |
)
|
369 |
return interface
|
370 |
|
371 |
-
def
|
372 |
-
# CSS to hide footer
|
373 |
css = """
|
374 |
footer {
|
375 |
visibility: hidden;
|
376 |
}
|
377 |
"""
|
378 |
|
379 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
interface = create_interface()
|
381 |
-
interface.launch(
|
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()
|