merve HF staff commited on
Commit
c2425d0
·
1 Parent(s): c7680ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -31,8 +31,12 @@ data = query(
31
  }
32
  }
33
  )
34
- bot_answer = data["answer"]
35
- message(f"{bot_answer} is the best task for this :)")
 
 
 
 
36
 
37
 
38
 
 
31
  }
32
  }
33
  )
34
+ try:
35
+ bot_answer = data["answer"]
36
+ message(f"{bot_answer} is the best task for this :)")
37
+
38
+ except:
39
+ message("Inference API is currently loading!")
40
 
41
 
42