yashxx07 commited on
Commit
e5868d9
·
verified ·
1 Parent(s): 085c288

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -5
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
- prompt: "Write fizz buzz in SQL",
49
- temperature: 0.2
50
- }):
51
  # Convert the event to a string and append it to the list
52
- event_list.append(str(event))
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)