Spaces:
Sleeping
Sleeping
Commit ·
6201c6d
1
Parent(s): 3d60d11
Program_Flask.py
Browse files- Program_Flask.py +1 -1
Program_Flask.py
CHANGED
|
@@ -169,6 +169,6 @@ def Analyze(video_link):
|
|
| 169 |
|
| 170 |
return {'title': video_title, 'url': video_url, 'len': video.length, 'lang': result['language'], 'summary': summary, 'sentiment': sentiment, 'foo': foo, 'hate': presence_of_hate, 'explanation': exp, 'degree': hate_degree, 'part': part_which_contains_hate, 'transcript': input_text}
|
| 171 |
except Exception as e:
|
| 172 |
-
print(f"An error occured:
|
| 173 |
|
| 174 |
|
|
|
|
| 169 |
|
| 170 |
return {'title': video_title, 'url': video_url, 'len': video.length, 'lang': result['language'], 'summary': summary, 'sentiment': sentiment, 'foo': foo, 'hate': presence_of_hate, 'explanation': exp, 'degree': hate_degree, 'part': part_which_contains_hate, 'transcript': input_text}
|
| 171 |
except Exception as e:
|
| 172 |
+
print(f"An error occured: Unable to process")
|
| 173 |
|
| 174 |
|