Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ description = "Sistema para automação。"
|
|
| 18 |
st.header(description)
|
| 19 |
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>"
|
| 20 |
|
| 21 |
-
st.file_uploader("
|
| 22 |
#-s 720x1280
|
| 23 |
uploaded_file = st.file_uploader("Choose a file")
|
| 24 |
if uploaded_file is not None:
|
|
@@ -35,7 +35,7 @@ def chamada():
|
|
| 35 |
#exec=True
|
| 36 |
# st.write("ffmpeg separando imagens")
|
| 37 |
#if not os.path.isfile("./_input/imagem-0001.png"):
|
| 38 |
-
os.system("ffmpeg -i
|
| 39 |
percent_complete= percent_complete+ 30
|
| 40 |
with col1:
|
| 41 |
my_bar.progress(percent_complete )
|
|
|
|
| 18 |
st.header(description)
|
| 19 |
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>"
|
| 20 |
|
| 21 |
+
st.file_uploader("File")
|
| 22 |
#-s 720x1280
|
| 23 |
uploaded_file = st.file_uploader("Choose a file")
|
| 24 |
if uploaded_file is not None:
|
|
|
|
| 35 |
#exec=True
|
| 36 |
# st.write("ffmpeg separando imagens")
|
| 37 |
#if not os.path.isfile("./_input/imagem-0001.png"):
|
| 38 |
+
os.system("ffmpeg -i taissa.MOV -compression_level 10 -pred mixed -pix_fmt rgb24 -sws_flags +accurate_rnd+full_chroma_int -s 1480x2560 -r 30 ./_input/imagem-%4d.png")
|
| 39 |
percent_complete= percent_complete+ 30
|
| 40 |
with col1:
|
| 41 |
my_bar.progress(percent_complete )
|