Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ try:
|
|
26 |
classifier = pipeline("text-classification", "Intel/polite-guard")
|
27 |
text = "str"
|
28 |
return classifier(input_text)
|
29 |
-
|
30 |
return f"Error fetching classification for text '{input_text}': {str(e)}"
|
31 |
|
32 |
|
|
|
26 |
classifier = pipeline("text-classification", "Intel/polite-guard")
|
27 |
text = "str"
|
28 |
return classifier(input_text)
|
29 |
+
except Exception as e:
|
30 |
return f"Error fetching classification for text '{input_text}': {str(e)}"
|
31 |
|
32 |
|