visheratin commited on
Commit
18893d2
1 Parent(s): b896e6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def answer_question(image, question, max_crops, num_tokens):
74
  buffer += new_text
75
  print(buffer)
76
  if len(buffer) > 1:
77
- yield buffer.replace(replace_prompt, "")
78
 
79
 
80
  with gr.Blocks() as demo:
 
74
  buffer += new_text
75
  print(buffer)
76
  if len(buffer) > 1:
77
+ yield buffer[len(replace_prompt) :]
78
 
79
 
80
  with gr.Blocks() as demo: