Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import streamlit as st
|
2 |
import base64
|
3 |
import os.path
|
|
|
|
|
|
|
4 |
os.system("sudo apt-get -y install libx264-dev")
|
5 |
os.system("mkdir _input")
|
6 |
os.system("mkdir _output")
|
@@ -8,6 +11,7 @@ os.system("mkdir _outputf")
|
|
8 |
os.system("ls")
|
9 |
|
10 |
|
|
|
11 |
if 'exec' not in globals():
|
12 |
|
13 |
exec=True
|
@@ -22,10 +26,7 @@ if 'exec' not in globals():
|
|
22 |
myVar=""
|
23 |
# os.system("pip install git+https://github.com/TencentARC/GFPGAN.git")
|
24 |
os.system("python3 inference_gfpgan.py -i _input -o _output -v 1.3 -s 4")
|
25 |
-
|
26 |
-
|
27 |
-
import random
|
28 |
-
|
29 |
|
30 |
os.system("ls ./_output")
|
31 |
os.system("echo ----")
|
|
|
1 |
import streamlit as st
|
2 |
import base64
|
3 |
import os.path
|
4 |
+
import cv2
|
5 |
+
import random
|
6 |
+
|
7 |
os.system("sudo apt-get -y install libx264-dev")
|
8 |
os.system("mkdir _input")
|
9 |
os.system("mkdir _output")
|
|
|
11 |
os.system("ls")
|
12 |
|
13 |
|
14 |
+
|
15 |
if 'exec' not in globals():
|
16 |
|
17 |
exec=True
|
|
|
26 |
myVar=""
|
27 |
# os.system("pip install git+https://github.com/TencentARC/GFPGAN.git")
|
28 |
os.system("python3 inference_gfpgan.py -i _input -o _output -v 1.3 -s 4")
|
29 |
+
|
|
|
|
|
|
|
30 |
|
31 |
os.system("ls ./_output")
|
32 |
os.system("echo ----")
|