openfree commited on
Commit
c622495
·
verified ·
1 Parent(s): 70539e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
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}")