moriire commited on
Commit
22c75d7
1 Parent(s): 3cc3cf4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -105,7 +105,7 @@ async def generate(gen:GenModel):
105
  seed= gen.seed,
106
  stream=True
107
  )
108
- """
109
  for chunk in output:
110
  delta = chunk['choices'][0]['delta']
111
  if 'role' in delta:
@@ -113,7 +113,7 @@ async def generate(gen:GenModel):
113
  elif 'content' in delta:
114
  print(delta['content'], end='')
115
  #print(chunk)
116
- """
117
  et = time()
118
  #output["time"] = et - st
119
  return output
 
105
  seed= gen.seed,
106
  stream=True
107
  )
108
+
109
  for chunk in output:
110
  delta = chunk['choices'][0]['delta']
111
  if 'role' in delta:
 
113
  elif 'content' in delta:
114
  print(delta['content'], end='')
115
  #print(chunk)
116
+
117
  et = time()
118
  #output["time"] = et - st
119
  return output