Update app.py
Browse files
app.py
CHANGED
|
@@ -824,7 +824,7 @@ def upload():
|
|
| 824 |
os.unlink(tmp.name)
|
| 825 |
|
| 826 |
# 构建完整文件访问 URL
|
| 827 |
-
base_url = "https://" + request.host
|
| 828 |
file_url = base_url + remote_path
|
| 829 |
return jsonify({'success': True, 'filename': file_url})
|
| 830 |
|
|
|
|
| 824 |
os.unlink(tmp.name)
|
| 825 |
|
| 826 |
# 构建完整文件访问 URL
|
| 827 |
+
base_url = "https://" + request.host + "/" # 例如 "https://chatyou-filebed.hf.space/"
|
| 828 |
file_url = base_url + remote_path
|
| 829 |
return jsonify({'success': True, 'filename': file_url})
|
| 830 |
|