ffreemt commited on
Commit
ad353f0
1 Parent(s): 47dc12f
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -337,7 +337,7 @@ def predict_api(user_prompt):
337
  prompt=prompt,
338
  verbose=True,
339
  )
340
- response = conversation1.predict(user_prompt)
341
  logger.debug(f"api: {response=}")
342
  except Exception as exc:
343
  logger.error(exc)
@@ -415,7 +415,7 @@ with gr.Blocks(
415
  # )
416
  gr.Markdown(
417
  f"""<h5><center>{Path(model_loc).name}</center></h4>
418
- The bot can conduct multi-turn conversations remembers the previous 5 dialogs. The process time is longer.
419
  It typically takes around 120 seconds for the first response to appear.
420
 
421
  Most examples are meant for another model.
 
337
  prompt=prompt,
338
  verbose=True,
339
  )
340
+ response = conversation1.predict(input=user_prompt)
341
  logger.debug(f"api: {response=}")
342
  except Exception as exc:
343
  logger.error(exc)
 
415
  # )
416
  gr.Markdown(
417
  f"""<h5><center>{Path(model_loc).name}</center></h4>
418
+ The bot can conduct multi-turn conversations, i.e. it remembers past dialogs. The process time is longer.
419
  It typically takes around 120 seconds for the first response to appear.
420
 
421
  Most examples are meant for another model.