yetessam commited on
Commit
6387f36
·
verified ·
1 Parent(s): 3d5b6a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -29,7 +29,9 @@ print(status_info["status"])
29
  print(status_info["status_code"])
30
 
31
  if status_info["status"] is False:
32
- create_failed_gradio_ui(status_info)
 
 
33
  else:
34
 
35
  model = HfApiModel(
@@ -58,5 +60,5 @@ else:
58
  )
59
 
60
  # Launch the UI earlier or without passing through the Agent
61
- #GradioUI(agent).launch(debug=True, share=True, ssr=False)
62
 
 
29
  print(status_info["status_code"])
30
 
31
  if status_info["status"] is False:
32
+ interface = create_failed_gradio_ui(status_info)
33
+ # Launch the UI
34
+ interface.launch(show_error=True)
35
  else:
36
 
37
  model = HfApiModel(
 
60
  )
61
 
62
  # Launch the UI earlier or without passing through the Agent
63
+ GradioUI(agent).launch(debug=True, share=True, ssr=False)
64