Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,10 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
from concurrent.futures import ThreadPoolExecutor, as_completed
|
3 |
import hashlib
|
4 |
import shutil
|
@@ -184,6 +190,7 @@ Medical Records:
|
|
184 |
finish_detected = True
|
185 |
|
186 |
clean_response = response.rsplit("[TOOL_CALLS]", 1)[0].strip()
|
|
|
187 |
if not clean_response:
|
188 |
clean_response = "⚠️ No clear oversights identified or model output was invalid."
|
189 |
|
|
|
1 |
+
import sys
|
2 |
+
import os
|
3 |
+
import pandas as pd
|
4 |
+
import pdfplumber
|
5 |
+
import json
|
6 |
+
import gradio as gr
|
7 |
+
from typing import List
|
8 |
from concurrent.futures import ThreadPoolExecutor, as_completed
|
9 |
import hashlib
|
10 |
import shutil
|
|
|
190 |
finish_detected = True
|
191 |
|
192 |
clean_response = response.rsplit("[TOOL_CALLS]", 1)[0].strip()
|
193 |
+
print("🔎 Final Cleaned Response:", repr(clean_response))
|
194 |
if not clean_response:
|
195 |
clean_response = "⚠️ No clear oversights identified or model output was invalid."
|
196 |
|