Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -44,12 +44,11 @@ async def root(item: Item):
|
|
44 |
return {'summary': ""}
|
45 |
|
46 |
event_list = []
|
47 |
-
for event in replicate.stream("snowflake/snowflake-arctic-instruct", input={
|
48 |
-
|
49 |
-
|
50 |
-
}):
|
51 |
# Convert the event to a string and append it to the list
|
52 |
-
|
53 |
|
54 |
# After the event stream ends, process the collected events
|
55 |
output_variable = "\n".join(event_list)
|
|
|
44 |
return {'summary': ""}
|
45 |
|
46 |
event_list = []
|
47 |
+
for event in replicate.stream("snowflake/snowflake-arctic-instruct", input= {
|
48 |
+
"prompt": "Write fizz buzz in SQL",
|
49 |
+
"temperature": 0.2}):
|
|
|
50 |
# Convert the event to a string and append it to the list
|
51 |
+
event_list.append(str(event))
|
52 |
|
53 |
# After the event stream ends, process the collected events
|
54 |
output_variable = "\n".join(event_list)
|