zac commited on
Commit
2784000
·
1 Parent(s): dbf3ceb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def generate_text(input_text, history):
20
  input_text_with_history = f"{history[-1][1]}"+ "\n"
21
  input_text_with_history += f"Q: {input_text} \n A:"
22
  print("new input", input_text_with_history)
23
- output = llm(input_text_with_history, max_tokens=1024, stop=["Q:", "\n"], stream=True, echo=true)
24
 
25
  for out in output:
26
  stream = copy.deepcopy(out)
 
20
  input_text_with_history = f"{history[-1][1]}"+ "\n"
21
  input_text_with_history += f"Q: {input_text} \n A:"
22
  print("new input", input_text_with_history)
23
+ output = llm(input_text_with_history, max_tokens=1024, stop=["Q:", "\n"], stream=True, echo=True)
24
 
25
  for out in output:
26
  stream = copy.deepcopy(out)