Spaces:
Building
Building
Update app.py
Browse files
app.py
CHANGED
@@ -259,4 +259,20 @@ def create_interface():
|
|
259 |
"""
|
260 |
)
|
261 |
|
262 |
-
return demo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
"""
|
260 |
)
|
261 |
|
262 |
+
return demo
|
263 |
+
|
264 |
+
if __name__ == "__main__":
|
265 |
+
try:
|
266 |
+
# ์ถ๋ ฅ ๋๋ ํ ๋ฆฌ ์์ฑ
|
267 |
+
os.makedirs("qrfile", exist_ok=True)
|
268 |
+
|
269 |
+
# ์ธํฐํ์ด์ค ์์ฑ ๋ฐ ์คํ
|
270 |
+
demo = create_interface()
|
271 |
+
demo.launch(
|
272 |
+
server_name="0.0.0.0", # ๋ชจ๋ IP์์ ์ ๊ทผ ๊ฐ๋ฅ
|
273 |
+
server_port=7860, # ํฌํธ ์ง์
|
274 |
+
share=True, # ๊ณต์ ๋งํฌ ์์ฑ
|
275 |
+
debug=True # ๋๋ฒ๊ทธ ๋ชจ๋ ํ์ฑํ
|
276 |
+
)
|
277 |
+
except Exception as e:
|
278 |
+
print(f"Error starting the application: {e}")
|