Tonic commited on
Commit
4a90a27
1 Parent(s): b81f1bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def process_input(text=None, file=None, task_history=None):
75
  else:
76
  # Clean the response if it contains any box-like annotations
77
  clean_response = re.sub(r'<ref>(.*?)</ref>(?:<box>.*?</box>)*(?:<quad>.*?</quad>)*', r'\1', response).strip()
78
- return [("bot", clean_response), "text", None], task_history
79
 
80
  # Define Gradio interface
81
  with gr.Blocks() as demo:
 
75
  else:
76
  # Clean the response if it contains any box-like annotations
77
  clean_response = re.sub(r'<ref>(.*?)</ref>(?:<box>.*?</box>)*(?:<quad>.*?</quad>)*', r'\1', response).strip()
78
+ return [("bot", clean_response)], task_history
79
 
80
  # Define Gradio interface
81
  with gr.Blocks() as demo: