Spaces:
Sleeping
Sleeping
Drop manual installation steps (#1)
Browse files- Drop manual installation steps (ad84827dcc5839192025d4707b6789758fe576bc)
Co-authored-by: Charles Bensimon <[email protected]>
app.py
CHANGED
@@ -1,17 +1,3 @@
|
|
1 |
-
import sys
|
2 |
-
from subprocess import call
|
3 |
-
def run_cmd(command):
|
4 |
-
try:
|
5 |
-
print(command)
|
6 |
-
call(command, shell=True)
|
7 |
-
except KeyboardInterrupt:
|
8 |
-
print("Process interrupted")
|
9 |
-
sys.exit(1)
|
10 |
-
|
11 |
-
print("⬇️ Installing latest gradio==3.0.4")
|
12 |
-
run_cmd("pip install --upgrade pip")
|
13 |
-
run_cmd('pip install gradio==3.0.4')
|
14 |
-
|
15 |
import gc
|
16 |
import math
|
17 |
|
@@ -189,9 +175,9 @@ iface_file = gr.Interface(
|
|
189 |
description="Applying AnimeGAN-V2 to frames from video clips",
|
190 |
article=article,
|
191 |
enable_queue=True,
|
192 |
-
examples=[
|
193 |
-
|
194 |
-
],
|
195 |
allow_flagging=False,
|
196 |
)
|
197 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gc
|
2 |
import math
|
3 |
|
|
|
175 |
description="Applying AnimeGAN-V2 to frames from video clips",
|
176 |
article=article,
|
177 |
enable_queue=True,
|
178 |
+
# examples=[
|
179 |
+
# ['obama.webm', 0, 4],
|
180 |
+
# ],
|
181 |
allow_flagging=False,
|
182 |
)
|
183 |
|