Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ source_file = st.file_uploader("Upload source image")
|
|
| 51 |
target_file = st.file_uploader("Upload target image")
|
| 52 |
mode = st.radio("Choose Mode", ("Face Swapper", "Face Enhancer"))
|
| 53 |
|
| 54 |
-
if source_file and target_file and st.button("
|
| 55 |
result = run_scripts(target_file, source_file, mode)
|
| 56 |
if result:
|
| 57 |
st.image(result) # Display the result as an image
|
|
|
|
| 51 |
target_file = st.file_uploader("Upload target image")
|
| 52 |
mode = st.radio("Choose Mode", ("Face Swapper", "Face Enhancer"))
|
| 53 |
|
| 54 |
+
if source_file and target_file and st.button("Run"):
|
| 55 |
result = run_scripts(target_file, source_file, mode)
|
| 56 |
if result:
|
| 57 |
st.image(result) # Display the result as an image
|