Marthee commited on
Commit
e8595ad
·
verified ·
1 Parent(s): c8dc889

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -432,4 +432,9 @@ iface = gr.Interface(
432
  ],
433
  outputs=gr.File(label="Download Excel")
434
  )
435
- iface.launch(prevent_thread_lock=True)
 
 
 
 
 
 
432
  ],
433
  outputs=gr.File(label="Download Excel")
434
  )
435
+ if __name__ == "__main__":
436
+ try:
437
+ iface.close() # Close existing instance if it exists
438
+ except:
439
+ pass
440
+ iface.launch()