Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ import requests
|
|
| 9 |
import asyncio
|
| 10 |
from image_fetcher import main
|
| 11 |
from video import create_text_image
|
| 12 |
-
from video2 import
|
| 13 |
|
| 14 |
app = Flask(__name__)
|
| 15 |
|
|
@@ -121,16 +121,7 @@ def generate_video():
|
|
| 121 |
os.remove(img)
|
| 122 |
return send_file(video_link, mimetype='video/mp4')
|
| 123 |
else:
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
with ThreadPoolExecutor(max_workers=len(lines)) as executor:
|
| 127 |
-
for id in range(len(lines)):
|
| 128 |
-
executor.submit(send_task,id,space_b_url[id],lines)
|
| 129 |
-
|
| 130 |
-
video_path = video_com(lines)
|
| 131 |
-
#for img in image_files:
|
| 132 |
-
#os.remove(img)
|
| 133 |
-
return send_file(video_path, mimetype='video/mp4')
|
| 134 |
except Exception as e:
|
| 135 |
traceback.print_exc()
|
| 136 |
return jsonify({"error": str(e)}), 500
|
|
|
|
| 9 |
import asyncio
|
| 10 |
from image_fetcher import main
|
| 11 |
from video import create_text_image
|
| 12 |
+
from video2 import video_func
|
| 13 |
|
| 14 |
app = Flask(__name__)
|
| 15 |
|
|
|
|
| 121 |
os.remove(img)
|
| 122 |
return send_file(video_link, mimetype='video/mp4')
|
| 123 |
else:
|
| 124 |
+
print("learn deeper")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
except Exception as e:
|
| 126 |
traceback.print_exc()
|
| 127 |
return jsonify({"error": str(e)}), 500
|