OriLib commited on
Commit
98b8b30
·
verified ·
1 Parent(s): 5ffd6e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -60,8 +60,14 @@ def process_image(image, num_steps=10, guidance_scale=1.0):
60
  except Exception as e:
61
  return None, None, f"❌ Error: {str(e)}"
62
 
 
 
 
 
 
 
63
  # Create Gradio interface
64
- with gr.Blocks(title="Fibo-Edit-RMBG - Background Removal") as demo:
65
  gr.Markdown("""
66
  # Fibo-Edit-RMBG - Background Removal
67
 
@@ -106,7 +112,7 @@ with gr.Blocks(title="Fibo-Edit-RMBG - Background Removal") as demo:
106
  output_image = ImageSlider(
107
  label="Result vs Original",
108
  type="pil",
109
- height=400
110
  )
111
 
112
  download_file = gr.File(label="Download PNG (with transparency)")
 
60
  except Exception as e:
61
  return None, None, f"❌ Error: {str(e)}"
62
 
63
+ css = """
64
+ .image-container img {
65
+ object-fit: contain !important;
66
+ }
67
+ """
68
+
69
  # Create Gradio interface
70
+ with gr.Blocks(title="Fibo-Edit-RMBG - Background Removal", css=css) as demo:
71
  gr.Markdown("""
72
  # Fibo-Edit-RMBG - Background Removal
73
 
 
112
  output_image = ImageSlider(
113
  label="Result vs Original",
114
  type="pil",
115
+ # height=400
116
  )
117
 
118
  download_file = gr.File(label="Download PNG (with transparency)")