Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -45,7 +45,7 @@ async def root(item: Item):
|
|
| 45 |
|
| 46 |
event_list = []
|
| 47 |
for event in replicate.stream("snowflake/snowflake-arctic-instruct", input= {
|
| 48 |
-
"prompt": "
|
| 49 |
"temperature": 0.2}):
|
| 50 |
# Convert the event to a string and append it to the list
|
| 51 |
event_list.append(str(event))
|
|
|
|
| 45 |
|
| 46 |
event_list = []
|
| 47 |
for event in replicate.stream("snowflake/snowflake-arctic-instruct", input= {
|
| 48 |
+
"prompt": "summarize this following news article:" + article,
|
| 49 |
"temperature": 0.2}):
|
| 50 |
# Convert the event to a string and append it to the list
|
| 51 |
event_list.append(str(event))
|