nroggendorff commited on
Commit
699a605
·
verified ·
1 Parent(s): 9a79b8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,6 +32,6 @@ def predict(input_text, history):
32
  outputs = model.generate(**inputs, max_new_tokens=512)
33
 
34
  generated_text = tokenizer.batch_decode(outputs)[0]
35
- return generated_text#.split("<|assistant|>")[-1]
36
 
37
  gr.ChatInterface(predict, theme="soft").launch()
 
32
  outputs = model.generate(**inputs, max_new_tokens=512)
33
 
34
  generated_text = tokenizer.batch_decode(outputs)[0]
35
+ return generated_text.split("<|assistant|>")[-1]
36
 
37
  gr.ChatInterface(predict, theme="soft").launch()