Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,8 @@
|
|
| 1 |
-
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
| 3 |
if __name__ == "__main__":
|
| 4 |
-
|
|
|
|
|
|
| 1 |
+
from ui.ui_app import build_ui
|
| 2 |
+
|
| 3 |
+
# HF Spaces は app_file=app.py を実行します
|
| 4 |
+
demo = build_ui()
|
| 5 |
+
|
| 6 |
if __name__ == "__main__":
|
| 7 |
+
# Spaces では share=True は禁止。server_* だけ指定
|
| 8 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|