nroggendorff commited on
Commit
eeda2cf
·
verified ·
1 Parent(s): cf81fc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,6 +38,6 @@ def predict(input_text, history):
38
 
39
  model_output = removed_posts.split("<refined>")[-1].replace("</refined>", "")
40
 
41
- return model_output
42
 
43
  gr.ChatInterface(predict, theme="soft").launch()
 
38
 
39
  model_output = removed_posts.split("<refined>")[-1].replace("</refined>", "")
40
 
41
+ return model_output.strip()
42
 
43
  gr.ChatInterface(predict, theme="soft").launch()