Spaces:
Sleeping
Sleeping
Jeff Myers II
commited on
Commit
·
2a3b6f4
1
Parent(s):
eebf9a7
Completed Prototype
Browse files
Gemma.py
CHANGED
|
@@ -53,7 +53,10 @@ class GemmaLLM:
|
|
| 53 |
|
| 54 |
def get_summary(self, article, num_paragraphs) -> str:
|
| 55 |
message = self._get_summary_message(article, num_paragraphs)
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
return summary
|
| 59 |
|
|
|
|
| 53 |
|
| 54 |
def get_summary(self, article, num_paragraphs) -> str:
|
| 55 |
message = self._get_summary_message(article, num_paragraphs)
|
| 56 |
+
try:
|
| 57 |
+
summary = self.generate(message)
|
| 58 |
+
except Exception as e:
|
| 59 |
+
print(e)
|
| 60 |
|
| 61 |
return summary
|
| 62 |
|