Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -831,7 +831,7 @@ def process_upscale(image, upscaler_name, upscaler_size):
|
|
| 831 |
# sd_gen_generate_pipeline.zerogpu = True
|
| 832 |
sd_gen = GuiSD()
|
| 833 |
|
| 834 |
-
with gr.Blocks(
|
| 835 |
gr.Markdown("# 🧩 DiffuseCraft")
|
| 836 |
gr.Markdown(SUBTITLE_GUI)
|
| 837 |
with gr.Tab("Generation"):
|
|
@@ -1395,7 +1395,7 @@ with gr.Blocks(theme=args.theme, css=CSS, fill_width=True, fill_height=False) as
|
|
| 1395 |
image_metadata = gr.Image(label="Image with metadata", type="pil", sources=["upload"])
|
| 1396 |
|
| 1397 |
with gr.Column():
|
| 1398 |
-
result_metadata = gr.Textbox(label="Metadata", show_label=True,
|
| 1399 |
|
| 1400 |
image_metadata.change(
|
| 1401 |
fn=extract_exif_data,
|
|
@@ -1438,7 +1438,7 @@ with gr.Blocks(theme=args.theme, css=CSS, fill_width=True, fill_height=False) as
|
|
| 1438 |
outputs=[load_model_gui],
|
| 1439 |
queue=True,
|
| 1440 |
show_progress="minimal",
|
| 1441 |
-
|
| 1442 |
).success(
|
| 1443 |
fn=sd_gen_generate_pipeline, # fn=sd_gen.generate_pipeline,
|
| 1444 |
inputs=[
|
|
@@ -1567,7 +1567,7 @@ with gr.Blocks(theme=args.theme, css=CSS, fill_width=True, fill_height=False) as
|
|
| 1567 |
outputs=[load_model_gui, result_images, actual_task_info],
|
| 1568 |
queue=True,
|
| 1569 |
show_progress="minimal",
|
| 1570 |
-
#
|
| 1571 |
)
|
| 1572 |
|
| 1573 |
if __name__ == "__main__":
|
|
@@ -1578,5 +1578,7 @@ if __name__ == "__main__":
|
|
| 1578 |
debug=True,
|
| 1579 |
ssr_mode=args.ssr,
|
| 1580 |
allowed_paths=[allowed_path],
|
| 1581 |
-
|
|
|
|
|
|
|
| 1582 |
)
|
|
|
|
| 831 |
# sd_gen_generate_pipeline.zerogpu = True
|
| 832 |
sd_gen = GuiSD()
|
| 833 |
|
| 834 |
+
with gr.Blocks(fill_width=True, fill_height=False) as app:
|
| 835 |
gr.Markdown("# 🧩 DiffuseCraft")
|
| 836 |
gr.Markdown(SUBTITLE_GUI)
|
| 837 |
with gr.Tab("Generation"):
|
|
|
|
| 1395 |
image_metadata = gr.Image(label="Image with metadata", type="pil", sources=["upload"])
|
| 1396 |
|
| 1397 |
with gr.Column():
|
| 1398 |
+
result_metadata = gr.Textbox(label="Metadata", show_label=True, buttons=["copy"], interactive=False, container=True, max_lines=99)
|
| 1399 |
|
| 1400 |
image_metadata.change(
|
| 1401 |
fn=extract_exif_data,
|
|
|
|
| 1438 |
outputs=[load_model_gui],
|
| 1439 |
queue=True,
|
| 1440 |
show_progress="minimal",
|
| 1441 |
+
api_visibility=("private" if HIDE_API else "public"),
|
| 1442 |
).success(
|
| 1443 |
fn=sd_gen_generate_pipeline, # fn=sd_gen.generate_pipeline,
|
| 1444 |
inputs=[
|
|
|
|
| 1567 |
outputs=[load_model_gui, result_images, actual_task_info],
|
| 1568 |
queue=True,
|
| 1569 |
show_progress="minimal",
|
| 1570 |
+
# api_visibility=("private" if HIDE_API else "public"),
|
| 1571 |
)
|
| 1572 |
|
| 1573 |
if __name__ == "__main__":
|
|
|
|
| 1578 |
debug=True,
|
| 1579 |
ssr_mode=args.ssr,
|
| 1580 |
allowed_paths=[allowed_path],
|
| 1581 |
+
footer_links=(["api", "gradio", "settings"] if not HIDE_API else ["gradio", "settings"]),
|
| 1582 |
+
theme=args.theme,
|
| 1583 |
+
css=CSS,
|
| 1584 |
)
|