Spaces:
Runtime error
Runtime error
remove unused for flask
Browse files- colab_flask.py +2 -5
colab_flask.py
CHANGED
@@ -3,7 +3,6 @@ import time
|
|
3 |
import cv2
|
4 |
from flask import Flask, request, jsonify, send_file
|
5 |
from flask_ngrok2 import run_with_ngrok
|
6 |
-
from pyngrok import ngrok
|
7 |
from subprocess import call
|
8 |
from tqdm import tqdm
|
9 |
import numpy as np
|
@@ -13,7 +12,7 @@ from ffmpy import FFmpeg
|
|
13 |
|
14 |
app = Flask(__name__)
|
15 |
auth_token = '2XQTtjJqVg4B4ryQVgauTPIGeiK_3JUWVJcMhXwpPxz2sc9KB'
|
16 |
-
root_dir = '/content/
|
17 |
jobs_dir = os.path.join('/content', 'jobs')
|
18 |
|
19 |
|
@@ -186,9 +185,7 @@ def call_gfpgan(wav2lip_mp4, audio_path, output_mp4):
|
|
186 |
|
187 |
|
188 |
if __name__ == '__main__':
|
189 |
-
|
190 |
-
print(f" * Running on {ngrok_url}")
|
191 |
-
|
192 |
app.run()
|
193 |
|
194 |
|
|
|
3 |
import cv2
|
4 |
from flask import Flask, request, jsonify, send_file
|
5 |
from flask_ngrok2 import run_with_ngrok
|
|
|
6 |
from subprocess import call
|
7 |
from tqdm import tqdm
|
8 |
import numpy as np
|
|
|
12 |
|
13 |
app = Flask(__name__)
|
14 |
auth_token = '2XQTtjJqVg4B4ryQVgauTPIGeiK_3JUWVJcMhXwpPxz2sc9KB'
|
15 |
+
root_dir = '/content/wav2lip-gfpgan'
|
16 |
jobs_dir = os.path.join('/content', 'jobs')
|
17 |
|
18 |
|
|
|
185 |
|
186 |
|
187 |
if __name__ == '__main__':
|
188 |
+
run_with_ngrok(app, auth_token=auth_token)
|
|
|
|
|
189 |
app.run()
|
190 |
|
191 |
|