Chris4K commited on
Commit
fdb5b3d
1 Parent(s): 50e0c1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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]):