Update app.py
Browse files
app.py
CHANGED
@@ -170,9 +170,9 @@ app.add_middleware(
|
|
170 |
|
171 |
|
172 |
@app.post("/generate/")
|
173 |
-
def generate(user_input):
|
174 |
print("----yuhu -----")
|
175 |
-
return get_response(user_input)
|
176 |
##################
|
177 |
|
178 |
def history_to_dialog_format(chat_history: list[str]):
|
|
|
170 |
|
171 |
|
172 |
@app.post("/generate/")
|
173 |
+
def generate(user_input, history=[]):
|
174 |
print("----yuhu -----")
|
175 |
+
return get_response(user_input, history)
|
176 |
##################
|
177 |
|
178 |
def history_to_dialog_format(chat_history: list[str]):
|