K00B404 commited on
Commit
2ebe1e7
·
verified ·
1 Parent(s): 3d59207

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -132
app.py CHANGED
@@ -98,122 +98,25 @@ async def gen(prompt, basemodel, width, height, scales, steps, seed, upscale_fac
98
 
99
  return [image_path]
100
 
101
- # CSS for styling the interface
102
- css = """
103
- #col-left, #col-mid, #col-right {
104
- margin: 0 auto;
105
- max-width: 400px;
106
- padding: 10px;
107
- border-radius: 15px;
108
- background-color: #f9f9f9;
109
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
110
- }
111
- #banner {
112
- width: 100%;
113
- text-align: center;
114
- margin-bottom: 20px;
115
- }
116
- #run-button {
117
- background-color: #ff4b5c;
118
- color: white;
119
- font-weight: bold;
120
- padding: 10px;
121
- border-radius: 10px;
122
- cursor: pointer;
123
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
124
- }
125
- #footer {
126
- text-align: center;
127
- margin-top: 20px;
128
- color: silver;
129
- }
130
- """
131
- css2="""
132
- .gradio-container {
133
- background-image: linear-gradient(#000000, #0a0a0a, #111111) !important;
134
- color: #00ffff !important;
135
- font-family: 'IBM Plex Sans', sans-serif !important;
136
- }
137
 
138
- h1 {
139
- font-size: 6em;
140
- color: #ff00ff;
141
- margin-top: 30px;
142
- margin-bottom: 30px;
143
- text-shadow: 3px 3px 5px rgba(255, 0, 255, 0.8) !important;
144
- }
145
-
146
- h3 {
147
- color: #00ff99 !important;
148
- }
149
-
150
- h4 {
151
- display: inline-block;
152
- color: #ffffff !important;
153
- }
154
-
155
- .wrapper img {
156
- font-size: 98% !important;
157
- white-space: nowrap !important;
158
- text-align: center !important;
159
- display: inline-block !important;
160
- color: #ffffff !important;
161
- }
162
-
163
- .wrapper {
164
- color: #ffffff !important;
165
- }
166
-
167
- .text-gray-500 {
168
- color: #ff0099 !important;
169
- }
170
-
171
- .gr-box {
172
- background-image: linear-gradient(#111111, #0a0a0a, #000000) !important;
173
- border-top-color: #ff00ff !important;
174
- border-right-color: #00ffff !important;
175
- border-bottom-color: #ff00ff !important;
176
- border-left-color: #00ffff !important;
177
- }
178
-
179
- .gr-input {
180
- color: #00ff99 !important;
181
- background-color: #111111 !important;
182
- }
183
-
184
- :root {
185
- --neutral-100: #000000 !important;
186
- }
187
-
188
- .gr-button {
189
- color: #ffffff !important;
190
- text-shadow: 1px 1px 5px rgba(0, 255, 255, 0.8) !important;
191
- background-image: linear-gradient(#002244, #004488) !important;
192
- border-radius: 24px !important;
193
- border: solid 1px !important;
194
- border-top-color: #00ffff !important;
195
- border-right-color: #ff00ff !important;
196
- border-bottom-color: #ff00ff !important;
197
- border-left-color: #00ffff !important;
198
- padding: 6px 30px;
199
- }
200
-
201
- .gr-button:active {
202
- color: #ff00ff !important;
203
- font-size: 98% !important;
204
- text-shadow: 0px 0px 5px rgba(255, 0, 255, 0.8) !important;
205
- background-image: linear-gradient(#004488, #002244) !important;
206
- border-top-color: #ff00ff !important;
207
- border-right-color: #00ffff !important;
208
- border-bottom-color: #00ffff !important;
209
- border-left-color: #ff00ff !important;
210
- }
211
-
212
- .gr-button:hover {
213
- filter: brightness(150%);
214
- }
215
- """
216
- loras_list_custom=["Keltezaa/anal-riding-missionary","Keltezaa/Fingering","Keltezaa/Spreading","Keltezaa/flux-prone-ass-spread-hd","Keltezaa/Flux_P"]
217
  # Creating Gradio interface
218
  with gr.Blocks(css=css2, theme=IndonesiaTheme()) as WallpaperFluxMaker:
219
  # Displaying the application title
@@ -235,26 +138,15 @@ with gr.Blocks(css=css2, theme=IndonesiaTheme()) as WallpaperFluxMaker:
235
  )
236
 
237
  basemodel_choice = gr.Dropdown(
238
- label="🖼️ Pilih Model",
239
- choices=[
240
- "black-forest-labs/FLUX.1-schnell",
241
- "black-forest-labs/FLUX.1-DEV",
242
- "enhanceaiteam/Flux-uncensored",
243
- "Shakker-Labs/FLUX.1-dev-ControlNet-Union-Pro",
244
- "Shakker-Labs/FLUX.1-dev-LoRA-add-details",
245
- "city96/FLUX.1-dev-gguf"
246
- ],
247
- value="black-forest-labs/FLUX.1-schnell"
248
  )
249
 
250
  lora_model_choice = gr.Dropdown(
251
- label="🎨 Pilih LoRA",
252
- choices=[
253
- "Shakker-Labs/FLUX.1-dev-LoRA-add-details",
254
- "XLabs-AI/flux-RealismLora",
255
- "enhanceaiteam/Flux-uncensored,
256
- ]+loras_list_custom,
257
- value="XLabs-AI/flux-RealismLora"
258
  )
259
 
260
  process_lora = gr.Checkbox(label="🎨 Aktifkan LoRA")
 
98
 
99
  return [image_path]
100
 
101
+ base_models=[
102
+ "black-forest-labs/FLUX.1-schnell",
103
+ "black-forest-labs/FLUX.1-DEV",
104
+ "enhanceaiteam/Flux-uncensored",
105
+ "Shakker-Labs/FLUX.1-dev-ControlNet-Union-Pro",
106
+ "Shakker-Labs/FLUX.1-dev-LoRA-add-details",
107
+ "city96/FLUX.1-dev-gguf"
108
+ ]
109
+ loras_list_custom=[
110
+ "Keltezaa/anal-riding-missionary",
111
+ "Keltezaa/Fingering",
112
+ "Keltezaa/Spreading",
113
+ "Keltezaa/flux-prone-ass-spread-hd",
114
+ "Keltezaa/Flux_P",
115
+ "Shakker-Labs/FLUX.1-dev-LoRA-add-details",
116
+ "XLabs-AI/flux-RealismLora",
117
+ "enhanceaiteam/Flux-uncensored"
118
+ ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  # Creating Gradio interface
121
  with gr.Blocks(css=css2, theme=IndonesiaTheme()) as WallpaperFluxMaker:
122
  # Displaying the application title
 
138
  )
139
 
140
  basemodel_choice = gr.Dropdown(
141
+ label="🖼️ Select Model",
142
+ choices=[base_models],
143
+ value=base_models[0]
 
 
 
 
 
 
 
144
  )
145
 
146
  lora_model_choice = gr.Dropdown(
147
+ label="🎨 Select LoRA",
148
+ choices=loras_list_custom,
149
+ value=loras_list_custom[0]
 
 
 
 
150
  )
151
 
152
  process_lora = gr.Checkbox(label="🎨 Aktifkan LoRA")