Update app.py
Browse files
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
|