Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|