chào bạn
Jump to turn (26)
- 1chào bạn
- 2import os from flask import Flask, request, rendertemplate, sendfromdirectory, j
- 3nó không hiển thị video
- 4tôi đặt thư mục videos cũng cấp với run.py
- 5VIDEOSDIR = os.path.join(os.path.dirname(os.path.abspath(file)), ‘videos’) file
- 6tôi sửa như này đúng chưa
- 7urlfor ở đâu ra @app.route('/videos/ ', methods=['GET']) def downloadvideo(filen
- 8download được chứ không xem được video
- 9vẫn không chạy được
- 10Không mở được http://127.0.0.1:5000/
- 11không nhận và không mở lên được
- 12sửa giúp tôi import os from flask import Flask, request, rendertemplate, sendfil
- 13html thì đúng rồi tôi cần sửa run.py Text to Video App body { font-family: 'Aria
- 14html tôi làm đúng rồi mà sao lại sửa
- 15bỏ videos
- 16làm @app.route('/videos/ ') def downloadvideo(filename):
- 17tất cả đã đúng chưa import os from flask import Flask, request, rendertemplate,
- 18import os from flask import Flask, request, rendertemplate, sendfile, sendfromdi
- 19vậy sau khi tôi thay đổi thành một tệp cố định trong thư mục nó không mở được
- 20werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'static
- 21thêm lôi
- 22không thể nào mở được videon tĩnh
- 23import os from flask import Flask, request, rendertemplate, sendfile, sendfromdi
- 24@app.route("/display/ ") def displayvideo(filename): return sendfromdirectory( a
- 25@app.route("/display/ ") def displayvideo(filename): videourl = urlfor('static',
- 26import os from flask import Flask, request, rendertemplate, sendfile, sendfromdi
- User
chào bạn
- Assistant
Chào bạn! Bạn cần hỗ trợ gì từ mình hôm nay?
- User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.