noumanjavaid commited on
Commit
f57745e
·
verified ·
1 Parent(s): 902fd42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -250,12 +250,9 @@ def main():
250
  logger.critical("Failed to create Gradio demo")
251
  return
252
 
253
- demo.launch(
254
- show_error=True,
255
- show_api=False,
256
- show_tips=False,
257
- height=800,
258
- )
259
-
260
  except Exception as e:
261
- logger
 
 
 
 
 
250
  logger.critical("Failed to create Gradio demo")
251
  return
252
 
 
 
 
 
 
 
 
253
  except Exception as e:
254
+ logger.critical(f"Unhandled exception: {e}")
255
+ logger.critical(traceback.format_exc())
256
+
257
+ if __name__ == "__main__":
258
+ main()