Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ if 'exec' not in globals():
|
|
12 |
|
13 |
exec=True
|
14 |
if not os.path.isfile("./_input/imagem-0001.png"):
|
15 |
-
os.system("ffmpeg -i saidavivi2.mp4 -compression_level 10 -pred mixed -pix_fmt rgb24 -sws_flags +accurate_rnd+full_chroma_int -s
|
16 |
|
17 |
os.system("ls ./_input")
|
18 |
if 'myVar' not in globals():
|
@@ -31,7 +31,7 @@ if 'exec' not in globals():
|
|
31 |
os.system("ls ./_output/restored_imgs")
|
32 |
os.system("echo ----")
|
33 |
#ffmpeg -r 60 -f image2 -s 1920x1080 -i _output/restored_imgs/imagem-%4d.png -pix_fmt yuv420p ./videoSaida/output.mp4
|
34 |
-
os.system("ffmpeg -y -r
|
35 |
os.system("ls ./videoSaida")
|
36 |
#st.video("./videoSaida/output.mp4" )
|
37 |
|
@@ -69,5 +69,5 @@ description = "Sistema para automação。"
|
|
69 |
|
70 |
article = "<p style='text-align: center'><a href='https://huggingface.co/spaces/akhaliq/GFPGAN/' target='_blank'>clone from akhaliq@huggingface with little change</a> | <a href='https://github.com/TencentARC/GFPGAN' target='_blank'>GFPGAN Github Repo</a></p><center><img src='https://visitor-badge.glitch.me/badge?page_id=akhaliq_GFPGAN' alt='visitor badge'></center>"
|
71 |
#st.button('Imagem',on_click=inference)
|
72 |
-
|
73 |
|
|
|
12 |
|
13 |
exec=True
|
14 |
if not os.path.isfile("./_input/imagem-0001.png"):
|
15 |
+
os.system("ffmpeg -i saidavivi2.mp4 -compression_level 10 -pred mixed -pix_fmt rgb24 -sws_flags +accurate_rnd+full_chroma_int -s 720x1280 -r 29 ./_input/imagem-%4d.png")
|
16 |
|
17 |
os.system("ls ./_input")
|
18 |
if 'myVar' not in globals():
|
|
|
31 |
os.system("ls ./_output/restored_imgs")
|
32 |
os.system("echo ----")
|
33 |
#ffmpeg -r 60 -f image2 -s 1920x1080 -i _output/restored_imgs/imagem-%4d.png -pix_fmt yuv420p ./videoSaida/output.mp4
|
34 |
+
os.system("ffmpeg -y -r 29 -f image2 -s 1240x2560 -i _output/restored_imgs/imagem-%4d.png -pix_fmt yuv420p ./videoSaida/output.mp4")
|
35 |
os.system("ls ./videoSaida")
|
36 |
#st.video("./videoSaida/output.mp4" )
|
37 |
|
|
|
69 |
|
70 |
article = "<p style='text-align: center'><a href='https://huggingface.co/spaces/akhaliq/GFPGAN/' target='_blank'>clone from akhaliq@huggingface with little change</a> | <a href='https://github.com/TencentARC/GFPGAN' target='_blank'>GFPGAN Github Repo</a></p><center><img src='https://visitor-badge.glitch.me/badge?page_id=akhaliq_GFPGAN' alt='visitor badge'></center>"
|
71 |
#st.button('Imagem',on_click=inference)
|
72 |
+
exec=True
|
73 |
|