zac commited on
Commit
b0e95e2
·
1 Parent(s): 5f6c3f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -12,12 +12,10 @@ history = []
12
 
13
  def generate_text(input_text, history):
14
  print("history ",history)
15
- print("input ", input)
16
- print("last history: ", history[-1])
17
  full_conversation = f"{history} Q: {input_text} \n A:"
18
  print("full convo", full_conversation)
19
- temp_conversation = f"{history[-1]} Q: {input_text} \n A:"
20
- print("temp convo", temp_conversation)
21
  output = llm(full_conversation, max_tokens=1024, stop=["Q:", "\n"], echo=True)
22
  response = output['choices'][0]['text']
23
  return response
 
12
 
13
  def generate_text(input_text, history):
14
  print("history ",history)
15
+ print("input ", input_text)
 
16
  full_conversation = f"{history} Q: {input_text} \n A:"
17
  print("full convo", full_conversation)
18
+
 
19
  output = llm(full_conversation, max_tokens=1024, stop=["Q:", "\n"], echo=True)
20
  response = output['choices'][0]['text']
21
  return response