banjiola commited on
Commit
e54841c
·
verified ·
1 Parent(s): 4c5d652

Update app.py

Browse files

Added Error Message for When my free inference credits finish. Moving forward, I should develop locally, and use inference credits only when I am ready for production

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -108,7 +108,7 @@ def summarize_ner(text): # I implemented the validation step here because the mo
108
  summarized = summarized[0]['summary_text']
109
  else:
110
  return {
111
- "text": f"⚠️ Unexpected response from summarize. {summarized}",
112
  "entities": []
113
  }
114
 
 
108
  summarized = summarized[0]['summary_text']
109
  else:
110
  return {
111
+ "text": f"⚠️ Try Again Next Month. {summarized}", # This is to handle whenever, I have used up my free inference credits
112
  "entities": []
113
  }
114