m-ric commited on
Commit
fbe2980
·
verified ·
1 Parent(s): da79dec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ Now begin. You can make the descriptions a bit more verbose than in the examples
50
 
51
  Description: {text}
52
  Thought:"""
53
- return llm_client.text_generation(prompt, max_new_tokens=2000, stream=True, stop_sequences=[end_sequence])
54
 
55
 
56
  def parse_llm_output(output):
 
50
 
51
  Description: {text}
52
  Thought:"""
53
+ return llm_client.chat_completion([{"role": "user", "content": prompt}], max_new_tokens=2096, stream=True, stop_sequences=[end_sequence])
54
 
55
 
56
  def parse_llm_output(output):