Spaces:
Running
on
Zero
Running
on
Zero
removed decorator and the warmup.
Browse files
app.py
CHANGED
|
@@ -520,13 +520,7 @@ def process_user_upload(uploaded_image, user_prompt, n_edits_val):
|
|
| 520 |
return processed_image, generated_list, first_result, slider_update
|
| 521 |
|
| 522 |
|
| 523 |
-
|
| 524 |
-
def gpu_warmup():
|
| 525 |
-
return load_pipeline_single_gpu()
|
| 526 |
-
|
| 527 |
-
with gr.Blocks() as demo:
|
| 528 |
-
# warming up the demo for the first run
|
| 529 |
-
demo.load(gpu_warmup)
|
| 530 |
gr.Markdown("# Kontinuous Kontext - Continuous Strength Control for Instruction-based Image Editing")
|
| 531 |
|
| 532 |
# Add description section
|
|
|
|
| 520 |
return processed_image, generated_list, first_result, slider_update
|
| 521 |
|
| 522 |
|
| 523 |
+
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 524 |
gr.Markdown("# Kontinuous Kontext - Continuous Strength Control for Instruction-based Image Editing")
|
| 525 |
|
| 526 |
# Add description section
|