CYF200127 commited on
Commit
821e965
·
verified ·
1 Parent(s): 842c84b

Update app.py

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