Spaces:
Sleeping
Sleeping
Commit
·
cffec04
1
Parent(s):
ed324ed
fix for return value
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def extract_relevant_text(response):
|
|
55 |
if '<|im_end|>' in response:
|
56 |
# Extract everything before the first <|im_end|>
|
57 |
partial_response = response.split('<|im_end|>')[0].strip()
|
58 |
-
return f"
|
59 |
|
60 |
return "No complete blocks found. Please check the format of the response."
|
61 |
|
|
|
55 |
if '<|im_end|>' in response:
|
56 |
# Extract everything before the first <|im_end|>
|
57 |
partial_response = response.split('<|im_end|>')[0].strip()
|
58 |
+
return f"{partial_response}"
|
59 |
|
60 |
return "No complete blocks found. Please check the format of the response."
|
61 |
|