Spaces:
Sleeping
Sleeping
Commit
·
9a34296
1
Parent(s):
26e0a8b
..
Browse files- app/main.py +1 -1
app/main.py
CHANGED
@@ -24,7 +24,7 @@ def get_db():
|
|
24 |
finally:
|
25 |
db.close()
|
26 |
|
27 |
-
|
28 |
async def generate_stream(input_data: schemas.BaseModel, runnable: Runnable, callbacks: List[BaseCallbackHandler]=[]):
|
29 |
for output in runnable.stream(input_data.dict(), config={"callbacks": callbacks}):
|
30 |
data = WellKnownLCSerializer().dumps(output).decode("utf-8")
|
|
|
24 |
finally:
|
25 |
db.close()
|
26 |
|
27 |
+
# ..
|
28 |
async def generate_stream(input_data: schemas.BaseModel, runnable: Runnable, callbacks: List[BaseCallbackHandler]=[]):
|
29 |
for output in runnable.stream(input_data.dict(), config={"callbacks": callbacks}):
|
30 |
data = WellKnownLCSerializer().dumps(output).decode("utf-8")
|