fantaxy commited on
Commit
870f3c7
·
verified ·
1 Parent(s): f469b17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -15
app.py CHANGED
@@ -128,17 +128,8 @@ def infer(
128
  return [true_input_image, image, seed]
129
 
130
 
131
- with gr.Blocks(css=css) as demo:
132
- # with gr.Column(elem_id="col-container"):
133
- gr.Markdown(
134
- f"""
135
- # ⚡ Flux.1-dev Upscaler ControlNet ⚡
136
- This is an interactive demo of [Flux.1-dev Upscaler ControlNet](https://huggingface.co/jasperai/Flux.1-dev-Controlnet-Upscaler) taking as input a low resolution image to generate a high resolution image.
137
- Currently running on {power_device}.
138
-
139
- *Note*: Even though the model can handle higher resolution images, due to GPU memory constraints, this demo was limited to a generated output not exceeding a pixel budget of 1024x1024. If the requested size exceeds that limit, the input will be first resized keeping the aspect ratio such that the output of the controlNet model does not exceed the allocated pixel budget. The output is then resized to the targeted shape using a simple resizing. This may explain some artifacts for high resolution input. To adress this, run the demo locally or consider implementing a tiling strategy. Happy upscaling! 🚀
140
- """
141
- )
142
 
143
  with gr.Row():
144
  run_button = gr.Button(value="Run")
@@ -223,10 +214,7 @@ with gr.Blocks(css=css) as demo:
223
  # ],
224
  # )
225
 
226
- gr.Markdown("**Disclaimer:**")
227
- gr.Markdown(
228
- "This demo is only for research purpose. Jasper cannot be held responsible for the generation of NSFW (Not Safe For Work) content through the use of this demo. Users are solely responsible for any content they create, and it is their obligation to ensure that it adheres to appropriate and ethical standards. Jasper provides the tools, but the responsibility for their use lies with the individual user."
229
- )
230
  gr.on(
231
  [run_button.click],
232
  fn=infer,
 
128
  return [true_input_image, image, seed]
129
 
130
 
131
+ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
132
+
 
 
 
 
 
 
 
 
 
133
 
134
  with gr.Row():
135
  run_button = gr.Button(value="Run")
 
214
  # ],
215
  # )
216
 
217
+
 
 
 
218
  gr.on(
219
  [run_button.click],
220
  fn=infer,