Spaces:
Runtime error
Runtime error
fix.
Browse files
app.py
CHANGED
|
@@ -30,8 +30,6 @@ def infer_cartoonization(
|
|
| 30 |
text_cfg: float,
|
| 31 |
seed: int,
|
| 32 |
):
|
| 33 |
-
|
| 34 |
-
print(prompt, negative_prompt, steps, seed)
|
| 35 |
pipeline = load_pipeline(cartoonization_id)
|
| 36 |
images = pipeline(
|
| 37 |
prompt,
|
|
@@ -89,7 +87,7 @@ with gr.Blocks(theme="gradio/soft") as demo:
|
|
| 89 |
label="Generated images", show_label=False, elem_id="gallery"
|
| 90 |
).style(columns=[2], rows=[2], object_fit="contain", height="auto")
|
| 91 |
submit_btn = gr.Button(value="Submit")
|
| 92 |
-
all_car_inputs = [prompt, neg_prompt, input_image, img_cfg, text_cfg, seed]
|
| 93 |
submit_btn.click(
|
| 94 |
fn=infer_cartoonization,
|
| 95 |
inputs=all_car_inputs,
|
|
@@ -133,4 +131,4 @@ with gr.Blocks(theme="gradio/soft") as demo:
|
|
| 133 |
cache_examples=True,
|
| 134 |
)
|
| 135 |
|
| 136 |
-
demo.launch(
|
|
|
|
| 30 |
text_cfg: float,
|
| 31 |
seed: int,
|
| 32 |
):
|
|
|
|
|
|
|
| 33 |
pipeline = load_pipeline(cartoonization_id)
|
| 34 |
images = pipeline(
|
| 35 |
prompt,
|
|
|
|
| 87 |
label="Generated images", show_label=False, elem_id="gallery"
|
| 88 |
).style(columns=[2], rows=[2], object_fit="contain", height="auto")
|
| 89 |
submit_btn = gr.Button(value="Submit")
|
| 90 |
+
all_car_inputs = [prompt, neg_prompt, input_image, steps, img_cfg, text_cfg, seed]
|
| 91 |
submit_btn.click(
|
| 92 |
fn=infer_cartoonization,
|
| 93 |
inputs=all_car_inputs,
|
|
|
|
| 131 |
cache_examples=True,
|
| 132 |
)
|
| 133 |
|
| 134 |
+
demo.launch()
|