Spaces:
Sleeping
Sleeping
remove unwanted prints
Browse files
app.py
CHANGED
|
@@ -557,7 +557,6 @@ def postprocess_response(row):
|
|
| 557 |
print('unable to extract percentage from gdc result {}'.format(
|
| 558 |
str(e)))
|
| 559 |
gdc_result_percentage = np.nan
|
| 560 |
-
print(f'final gdc result percentage {gdc_result_percentage}')
|
| 561 |
|
| 562 |
|
| 563 |
try:
|
|
@@ -593,13 +592,10 @@ def postprocess_response(row):
|
|
| 593 |
|
| 594 |
final_gdc_qag_desc_response = postprocess_llm_description(row['descriptive_response'])
|
| 595 |
|
| 596 |
-
print(f'inputs into postprocess percentage response: {gdc_qag_base_stat}, {gdc_result_percentage}, {gdc_qag_percentage_response}')
|
| 597 |
-
|
| 598 |
gdc_qag_base_stat, final_gdc_qag_percentage_response = postprocess_percentage_response(
|
| 599 |
gdc_qag_base_stat, gdc_result_percentage, gdc_qag_percentage_response
|
| 600 |
)
|
| 601 |
final_gdc_qag_response = final_gdc_qag_desc_response + ' ' + final_gdc_qag_percentage_response
|
| 602 |
-
print(f'final_gdc_qag_response {final_gdc_qag_response}')
|
| 603 |
|
| 604 |
return pd.Series(
|
| 605 |
[
|
|
@@ -744,7 +740,6 @@ def execute_pipeline(question: str):
|
|
| 744 |
)
|
| 745 |
result.index = ["GDC-QAG results"] * len(result)
|
| 746 |
|
| 747 |
-
print(f'result {result}')
|
| 748 |
print("completed")
|
| 749 |
|
| 750 |
print("\nWriting result string now\n")
|
|
|
|
| 557 |
print('unable to extract percentage from gdc result {}'.format(
|
| 558 |
str(e)))
|
| 559 |
gdc_result_percentage = np.nan
|
|
|
|
| 560 |
|
| 561 |
|
| 562 |
try:
|
|
|
|
| 592 |
|
| 593 |
final_gdc_qag_desc_response = postprocess_llm_description(row['descriptive_response'])
|
| 594 |
|
|
|
|
|
|
|
| 595 |
gdc_qag_base_stat, final_gdc_qag_percentage_response = postprocess_percentage_response(
|
| 596 |
gdc_qag_base_stat, gdc_result_percentage, gdc_qag_percentage_response
|
| 597 |
)
|
| 598 |
final_gdc_qag_response = final_gdc_qag_desc_response + ' ' + final_gdc_qag_percentage_response
|
|
|
|
| 599 |
|
| 600 |
return pd.Series(
|
| 601 |
[
|
|
|
|
| 740 |
)
|
| 741 |
result.index = ["GDC-QAG results"] * len(result)
|
| 742 |
|
|
|
|
| 743 |
print("completed")
|
| 744 |
|
| 745 |
print("\nWriting result string now\n")
|