comdoleger commited on
Commit
7eb88b3
1 Parent(s): 330a478

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -62,9 +62,7 @@ def process(data, api, api_key):
62
  return image
63
 
64
  def process_generate(fore, prompt, image_width, image_height, intensity, mode, refprompt):
65
-
66
- print(f"MODE: {mode}, INTENSITY: {intensity}, WIDTH: {image_width}, HEIGHT: {image_height}")
67
-
68
 
69
  forestr = image_to_base64(fore.convert("RGBA"))
70
  data = {
@@ -120,7 +118,7 @@ with block:
120
  with gr.Row():
121
  gr.Markdown("### F.ai Lanthos: Real Composite Photography in 2 minutes!")
122
  with gr.Row():
123
- fore = gr.Image(source='upload', type="pil", label="Foreground Image", height=400)
124
  with gr.Column():
125
 
126
  result_gallery = gr.Image(label='Output') #gr.Gallery(height=400, object_fit='contain', label='Outputs')
 
62
  return image
63
 
64
  def process_generate(fore, prompt, image_width, image_height, intensity, mode, refprompt):
65
+
 
 
66
 
67
  forestr = image_to_base64(fore.convert("RGBA"))
68
  data = {
 
118
  with gr.Row():
119
  gr.Markdown("### F.ai Lanthos: Real Composite Photography in 2 minutes!")
120
  with gr.Row():
121
+ fore = gr.Image(image_mode='RGBA', type="pil", label="Foreground Image", height=400)
122
  with gr.Column():
123
 
124
  result_gallery = gr.Image(label='Output') #gr.Gallery(height=400, object_fit='contain', label='Outputs')