yetessam commited on
Commit
c49eb26
·
verified ·
1 Parent(s): 2d621db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- catch:
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