Update app.py
Browse files
app.py
CHANGED
|
@@ -46,11 +46,10 @@ def run_scripts(target, source, use_face_enhancer):
|
|
| 46 |
return output_path2
|
| 47 |
|
| 48 |
# Streamlit UI
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
source_file = st.file_uploader("Upload source image")
|
| 55 |
target_file = st.file_uploader("Upload target image/video")
|
| 56 |
use_face_enhancer = st.checkbox("Use only Face Enhancer", False)
|
|
@@ -58,4 +57,4 @@ use_face_enhancer = st.checkbox("Use only Face Enhancer", False)
|
|
| 58 |
if source_file and target_file and st.button("Swap Faces"):
|
| 59 |
result = run_scripts(target_file, source_file, use_face_enhancer)
|
| 60 |
if result:
|
| 61 |
-
st.image(result)
|
|
|
|
| 46 |
return output_path2
|
| 47 |
|
| 48 |
# Streamlit UI
|
| 49 |
+
st.markdown('<p style="color:#191970;text-align:center;font-size:30px;">Aiconvert.online</p>', unsafe_allow_html=True)
|
| 50 |
+
st.title("AIconvert Face swap")
|
| 51 |
+
st.markdown('<style>h1{color: Crimson; text-align: center;}</style>', unsafe_allow_html=True)
|
| 52 |
+
|
|
|
|
| 53 |
source_file = st.file_uploader("Upload source image")
|
| 54 |
target_file = st.file_uploader("Upload target image/video")
|
| 55 |
use_face_enhancer = st.checkbox("Use only Face Enhancer", False)
|
|
|
|
| 57 |
if source_file and target_file and st.button("Swap Faces"):
|
| 58 |
result = run_scripts(target_file, source_file, use_face_enhancer)
|
| 59 |
if result:
|
| 60 |
+
st.image(result)
|