48leewsypc commited on
Commit
8a86c2c
·
verified ·
1 Parent(s): f106ec5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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