Update app.py
Browse files
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)
|
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:
|