Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ def generate_and_swap(text_input, source_image_path):
|
|
22 |
|
23 |
# Second API: Face swap
|
24 |
swap_result_path = client_face_swap.predict(
|
25 |
-
generated_image_path, # Provide generated image path directly
|
26 |
-
source_image_path, # Provide source image path directly
|
27 |
api_name="/predict"
|
28 |
)
|
29 |
print("Faces swapped successfully.")
|
|
|
22 |
|
23 |
# Second API: Face swap
|
24 |
swap_result_path = client_face_swap.predict(
|
25 |
+
file(generated_image_path), # Provide generated image path directly
|
26 |
+
file(source_image_path), # Provide source image path directly
|
27 |
api_name="/predict"
|
28 |
)
|
29 |
print("Faces swapped successfully.")
|