Update app.py
Browse files
app.py
CHANGED
|
@@ -106,7 +106,7 @@ class EventScraper:
|
|
| 106 |
# Use Inference Client
|
| 107 |
return self.client.text_generation(
|
| 108 |
prompt,
|
| 109 |
-
max_new_tokens=
|
| 110 |
temperature=0.9
|
| 111 |
)
|
| 112 |
|
|
@@ -163,7 +163,8 @@ class EventScraper:
|
|
| 163 |
]
|
| 164 |
|
| 165 |
If NO events are found, return an empty list [].
|
| 166 |
-
Only return the json. nothing else. no comments.
|
|
|
|
| 167 |
return prompt
|
| 168 |
|
| 169 |
def parse_llm_response(self, response):
|
|
|
|
| 106 |
# Use Inference Client
|
| 107 |
return self.client.text_generation(
|
| 108 |
prompt,
|
| 109 |
+
max_new_tokens=2000,
|
| 110 |
temperature=0.9
|
| 111 |
)
|
| 112 |
|
|
|
|
| 163 |
]
|
| 164 |
|
| 165 |
If NO events are found, return an empty list [].
|
| 166 |
+
Only return the json. nothing else. no comments.
|
| 167 |
+
Return nothing but json []"""
|
| 168 |
return prompt
|
| 169 |
|
| 170 |
def parse_llm_response(self, response):
|