Cristobal299 commited on
Commit
566a0f1
·
verified ·
1 Parent(s): 49dcf45

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -100,7 +100,10 @@ def not_found(e):
100
  if __name__ == "__main__":
101
  if not os.path.isfile(DATABASE):
102
  init_db()
103
- import gradio as gr
 
 
 
104
 
105
  def status():
106
  return "Task API is running."
 
100
  if __name__ == "__main__":
101
  if not os.path.isfile(DATABASE):
102
  init_db()
103
+ try:
104
+ import gradio as gr
105
+ except ImportError:
106
+ gr = None
107
 
108
  def status():
109
  return "Task API is running."