Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -205,19 +205,19 @@ async def run_function_on_text(top_k,study_obj,study_type,phase,purpose,allocati
|
|
| 205 |
else:
|
| 206 |
formatted_ref = []
|
| 207 |
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
#Extract criteria
|
| 211 |
-
if query_response.response == "Empty Response":
|
| 212 |
-
|
| 213 |
-
else:
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
|
| 222 |
# # LLM.complete
|
| 223 |
# complete_response = await llm.acomplete(f"""
|
|
|
|
| 205 |
else:
|
| 206 |
formatted_ref = []
|
| 207 |
|
| 208 |
+
return query_response,formatted_ref
|
| 209 |
+
|
| 210 |
+
# #Extract criteria
|
| 211 |
+
# if query_response.response == "Empty Response":
|
| 212 |
+
# return query_response,formatted_ref
|
| 213 |
+
# else:
|
| 214 |
+
# removed_ref = await remove_ref(query_response.response)
|
| 215 |
+
# combine_criteira = re.sub(r'##\s*', '', removed_ref).strip()
|
| 216 |
+
# combine_criteira = re.sub(r'#\s*', '', combine_criteira).strip()
|
| 217 |
+
# combine_criteira = re.sub(r'\*\*', '', combine_criteira).strip()
|
| 218 |
+
# combine_criteira = re.sub(r'(Criteria)\n\s*\n(\d+\.)', r'\1\n\2', combine_criteira).strip()
|
| 219 |
+
|
| 220 |
+
# return combine_criteira,formatted_ref
|
| 221 |
|
| 222 |
# # LLM.complete
|
| 223 |
# complete_response = await llm.acomplete(f"""
|