Update app.py
Browse files
app.py
CHANGED
@@ -18,10 +18,8 @@ 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 |
#-s 720x1280
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
if load:
|
25 |
percent_complete=0
|
26 |
my_bar = st.progress(0)
|
27 |
percent_complete= percent_complete+ 10
|
@@ -90,7 +88,10 @@ if load:
|
|
90 |
st.image(input_img)
|
91 |
exec=False
|
92 |
#return Image.fromarray(restored_faces[0][:,:,::-1])
|
93 |
-
|
|
|
|
|
|
|
94 |
|
95 |
#st.button('Imagem',on_click=inference)
|
96 |
exec=True
|
|
|
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 |
#-s 720x1280
|
21 |
+
@st.experimental_memo(suppress_st_warnings=True)
|
22 |
+
def chamada():
|
|
|
|
|
23 |
percent_complete=0
|
24 |
my_bar = st.progress(0)
|
25 |
percent_complete= percent_complete+ 10
|
|
|
88 |
st.image(input_img)
|
89 |
exec=False
|
90 |
#return Image.fromarray(restored_faces[0][:,:,::-1])
|
91 |
+
load = st.checkbox("load")
|
92 |
+
|
93 |
+
if load:
|
94 |
+
chamada()
|
95 |
|
96 |
#st.button('Imagem',on_click=inference)
|
97 |
exec=True
|