chatyou commited on
Commit
e2ef719
·
verified ·
1 Parent(s): f3edb48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -824,7 +824,7 @@ def upload():
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
 
 
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