aheedsajid commited on
Commit
065663b
1 Parent(s): f6952be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,7 +33,7 @@ def generate_and_swap(text_input, source_image_path):
33
  swap_result_content = f.read()
34
 
35
  # Save swapped image to a file
36
- swapped_image_path = "swapped_image.png"
37
  with open(swapped_image_path, "wb") as f:
38
  f.write(swap_result_content)
39
 
@@ -46,7 +46,7 @@ iface = gr.Interface(
46
  gr.Textbox(label="Enter your prompt (English):"),
47
  gr.Image(type="filepath", label="Upload your source image:")
48
  ],
49
- "image", # Output type is directly specified as "image"
50
- title="Face Swap"
51
  )
52
  iface.launch()
 
33
  swap_result_content = f.read()
34
 
35
  # Save swapped image to a file
36
+ swapped_image_path = "final_image.png"
37
  with open(swapped_image_path, "wb") as f:
38
  f.write(swap_result_content)
39
 
 
46
  gr.Textbox(label="Enter your prompt (English):"),
47
  gr.Image(type="filepath", label="Upload your source image:")
48
  ],
49
+ "image",
50
+ title="Face to AI Image"
51
  )
52
  iface.launch()