Update app.py
Browse files
app.py
CHANGED
@@ -995,6 +995,22 @@ def create_interface():
|
|
995 |
|
996 |
return app
|
997 |
|
998 |
-
|
999 |
if __name__ == "__main__":
|
1000 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
995 |
|
996 |
return app
|
997 |
|
|
|
998 |
if __name__ == "__main__":
|
999 |
+
# 필요한 디렉토리 생성
|
1000 |
+
for directory in ['static/icons', 'assets', 'templates', 'data', 'generated_images']:
|
1001 |
+
os.makedirs(directory, exist_ok=True)
|
1002 |
+
|
1003 |
+
# PWA 파일 생성
|
1004 |
+
create_pwa_files()
|
1005 |
+
|
1006 |
+
# Gradio 인터페이스 생성 및 실행
|
1007 |
+
demo = create_interface()
|
1008 |
+
demo.launch(
|
1009 |
+
server_name="0.0.0.0",
|
1010 |
+
server_port=7860,
|
1011 |
+
share=True,
|
1012 |
+
debug=True,
|
1013 |
+
show_error=True,
|
1014 |
+
height=None,
|
1015 |
+
width="100%"
|
1016 |
+
)
|