nttwt1597 commited on
Commit
4909f2a
·
verified ·
1 Parent(s): 584140b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
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
- # 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"""
 
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"""