Vnmrsharma commited on
Commit
82c9256
·
verified ·
1 Parent(s): 1a7c3f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -12
app.py CHANGED
@@ -92,15 +92,15 @@ def generate_images(input_image):
92
  return [f.result() for f in futures if f.result()]
93
 
94
  # Gradio UI setup with custom styling
95
- def build_interface():
96
- custom_css = """
97
- #generate-button {
98
- background-color: #4A90E2;
99
- color: white;
100
- border-radius: 8px;
101
- padding: 12px 24px;
102
- font-size: 16px;
103
- margin-top: 10px;
104
  }
105
  #gallery .gallery-item {
106
  border-radius: 12px;
@@ -155,6 +155,7 @@ def generate_images(input_image):
155
  )
156
  return demo
157
 
158
- # Launch the app with SSR and async queue disabled to prevent file timeouts
159
- demo_app = build_interface()
160
- demo_app.launch()
 
 
92
  return [f.result() for f in futures if f.result()]
93
 
94
  # Gradio UI setup with custom styling
95
+ def build_interface():
96
+ custom_css = """
97
+ #generate-button {
98
+ background-color: #4A90E2;
99
+ color: white;
100
+ border-radius: 8px;
101
+ padding: 12px 24px;
102
+ font-size: 16px;
103
+ margin-top: 10px;
104
  }
105
  #gallery .gallery-item {
106
  border-radius: 12px;
 
155
  )
156
  return demo
157
 
158
+ # Launch the app
159
+ if __name__ == "__main__":
160
+ demo_app = build_interface()
161
+ demo_app.launch()