Vansh Chugh commited on
Commit
44cbb43
·
1 Parent(s): c2aac78

guard launch call for clean importability

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -161,4 +161,5 @@ with gr.Blocks() as demo:
161
  process_fn=process_fn,
162
  )
163
 
164
- demo.queue().launch(pwa=True)
 
 
161
  process_fn=process_fn,
162
  )
163
 
164
+ if __name__ == "__main__":
165
+ demo.queue().launch(pwa=True)