Update app.py
Browse files
app.py
CHANGED
@@ -127,14 +127,19 @@ app.add_middleware(
|
|
127 |
|
128 |
@app.post("/generate/")
|
129 |
def generate(user_input, history=[]):
|
130 |
-
|
|
|
|
|
|
|
|
|
|
|
131 |
|
132 |
# load the model asynchronously on startup and save it into memory
|
133 |
@app.on_event("startup")
|
134 |
async def startup():
|
135 |
# Get your crew to work!
|
136 |
-
|
137 |
|
138 |
print("######################")
|
139 |
-
|
140 |
|
|
|
127 |
|
128 |
@app.post("/generate/")
|
129 |
def generate(user_input, history=[]):
|
130 |
+
print("######################")
|
131 |
+
|
132 |
+
result = crew.kickoff()
|
133 |
+
print("######################")
|
134 |
+
print(result)
|
135 |
+
return result
|
136 |
|
137 |
# load the model asynchronously on startup and save it into memory
|
138 |
@app.on_event("startup")
|
139 |
async def startup():
|
140 |
# Get your crew to work!
|
141 |
+
# result = crew.kickoff()
|
142 |
|
143 |
print("######################")
|
144 |
+
# print(result)
|
145 |
|