ginipick commited on
Commit
0370aef
·
verified ·
1 Parent(s): b557bec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -1
app.py CHANGED
@@ -350,4 +350,32 @@ def create_ui():
350
  except Exception as e:
351
  print(f"Error in create_ui: {str(e)}")
352
  print(traceback.format_exc())
353
- raise
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
350
  except Exception as e:
351
  print(f"Error in create_ui: {str(e)}")
352
  print(traceback.format_exc())
353
+ raise
354
+
355
+
356
+ if __name__ == "__main__":
357
+ try:
358
+ print("Starting HuggingFace Space Analyzer...")
359
+ demo = create_ui()
360
+ print("UI created successfully.")
361
+
362
+ print("Configuring Gradio queue...")
363
+ demo.queue()
364
+ print("Gradio queue configured.")
365
+
366
+ print("Launching Gradio app...")
367
+ demo.launch(
368
+ server_name="0.0.0.0", # 모든 네트워크 인터페이스에서 접근 가능하도록 설정
369
+ server_port=7860, # 기본 Gradio 포트
370
+ share=False,
371
+ debug=True,
372
+ show_api=False
373
+ )
374
+ print("Gradio app launched successfully.")
375
+ except Exception as e:
376
+ print(f"Error in main: {str(e)}")
377
+ print("Detailed error information:")
378
+ print(traceback.format_exc())
379
+ raise
380
+
381
+ print("Script execution completed.")