Spaces:
Running
Running
Jeff Myers II
commited on
Commit
·
47f4077
1
Parent(s):
a5c3031
Completed Prototype
Browse files
Gemma.py
CHANGED
@@ -53,11 +53,10 @@ class GemmaLLM:
|
|
53 |
|
54 |
def get_summary(self, article, num_paragraphs) -> str:
|
55 |
message = self._get_summary_message(article, num_paragraphs)
|
56 |
-
summary = ""
|
57 |
try:
|
58 |
summary = self.generate(message)
|
59 |
except Exception as e:
|
60 |
-
|
61 |
|
62 |
return summary
|
63 |
|
|
|
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 |
+
summary = str(e)
|
60 |
|
61 |
return summary
|
62 |
|