DazDin commited on
Commit
bca3fee
·
verified ·
1 Parent(s): 1ec15ef
Files changed (1) hide show
  1. app.py +11 -7
app.py CHANGED
@@ -63,11 +63,15 @@ def make_me():
63
  with gr.Row():
64
  gr.HTML("")
65
 
66
- try:
67
- with gr.Blocks(theme="DazDin/Go_Theme") as demo:
68
- make_me()
69
- except Exception as e:
70
- print(f"An error occurred: {e}")
 
71
 
72
- demo.queue(concurrency_count=100)
73
- demo.launch()
 
 
 
 
63
  with gr.Row():
64
  gr.HTML("")
65
 
66
+ try:
67
+ with gr.Blocks(theme="DazDin/Go_Theme") as demo:
68
+ make_me()
69
+ except Exception as e:
70
+ print(f"An error occurred while setting up the Gradio interface: {e}")
71
+ demo = None
72
 
73
+ if demo is not None:
74
+ demo.queue(concurrency_count=100)
75
+ demo.launch()
76
+ else:
77
+ print("Failed to set up the Gradio interface. Exiting.")