Spaces:
Sleeping
Sleeping
Update app.py
Browse filesAdded 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
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"⚠️
|
| 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 |
|