Update app.py
Browse files
app.py
CHANGED
@@ -94,8 +94,6 @@ def process_chem_image(image, selected_task):
|
|
94 |
|
95 |
# 将 JSON 结果解析为结构化输出
|
96 |
detailed_reactions, smiles_output = parse_reactions(rxnim_result)
|
97 |
-
|
98 |
-
# 调用 RxnScribe 模型处理并生成整合图像
|
99 |
predictions = model.predict_image_file(image_path, molscribe=True, ocr=True)
|
100 |
combined_image_path = generate_combined_image(predictions, image_path)
|
101 |
#combined_image_path = model.draw_predictions(predictions, image_path)
|
|
|
94 |
|
95 |
# 将 JSON 结果解析为结构化输出
|
96 |
detailed_reactions, smiles_output = parse_reactions(rxnim_result)
|
|
|
|
|
97 |
predictions = model.predict_image_file(image_path, molscribe=True, ocr=True)
|
98 |
combined_image_path = generate_combined_image(predictions, image_path)
|
99 |
#combined_image_path = model.draw_predictions(predictions, image_path)
|