X-iZhang commited on
Commit
c1e5f6a
·
verified ·
1 Parent(s): a339a8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -39,6 +39,7 @@ def generate_radiology_description(
39
 
40
  try:
41
  # 调用 libra_eval 进行推理
 
42
  output = libra_eval(
43
  model_path=model_path,
44
  model_base=None, # 如果有必要,可指定基础模型
@@ -52,6 +53,7 @@ def generate_radiology_description(
52
  conv_mode=conv_mode,
53
  max_new_tokens=max_new_tokens
54
  )
 
55
  return output
56
  except Exception as e:
57
  return f"An error occurred: {str(e)}"
 
39
 
40
  try:
41
  # 调用 libra_eval 进行推理
42
+ print("Before calling libra_eval")
43
  output = libra_eval(
44
  model_path=model_path,
45
  model_base=None, # 如果有必要,可指定基础模型
 
53
  conv_mode=conv_mode,
54
  max_new_tokens=max_new_tokens
55
  )
56
+ print("After calling libra_eval, result:", output)
57
  return output
58
  except Exception as e:
59
  return f"An error occurred: {str(e)}"