vikhyatk commited on
Commit
6b26249
1 Parent(s): 1322687

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -36,9 +36,8 @@ def answer_question(img, prompt):
36
 
37
  buffer = ""
38
  for new_text in streamer:
39
- clean_text = re.sub("<$|<END$", "", new_text)
40
- buffer += clean_text
41
- yield buffer
42
 
43
 
44
  with gr.Blocks() as demo:
 
36
 
37
  buffer = ""
38
  for new_text in streamer:
39
+ buffer += new_text
40
+ yield buffer.strip()
 
41
 
42
 
43
  with gr.Blocks() as demo: