Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from flask import Flask, render_template, request, send_file, jsonify
|
2 |
from pytube import YouTube
|
3 |
from yt_dlp import YoutubeDL
|
|
|
1 |
+
from waitress import serve
|
2 |
+
import os
|
3 |
+
|
4 |
+
# Hugging Face Spaces configuration
|
5 |
+
port = int(os.environ.get("PORT", 7860))
|
6 |
from flask import Flask, render_template, request, send_file, jsonify
|
7 |
from pytube import YouTube
|
8 |
from yt_dlp import YoutubeDL
|