aladdin1995 commited on
Commit
0c40aec
·
verified ·
1 Parent(s): f614813

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -126,7 +126,7 @@ def gpu_predict(model_path, device_map, torch_dtype,
126
  return output_res, ""
127
  except Exception as e:
128
  # 失败则返回原始提示词和错误信息
129
- return org_prompt_cot, f"推理失败:{e}"
130
 
131
  # -------------------------
132
  # Gradio app
 
126
  return output_res, ""
127
  except Exception as e:
128
  # 失败则返回原始提示词和错误信息
129
+ return "发生异常,建议本地部署:"+org_prompt_cot, f"推理失败:{e}"
130
 
131
  # -------------------------
132
  # Gradio app