Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -228,8 +228,7 @@ def create_interface():
|
|
| 228 |
"""Create Gradio interface"""
|
| 229 |
|
| 230 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 231 |
-
gr.Markdown("# PosterCraft-
|
| 232 |
-
gr.Markdown(f"Running on: **{device if 'device' in globals() else 'cuda' if torch.cuda.is_available() else 'cpu'}** | Base Pipeline: **{DEFAULT_PIPELINE_PATH}**")
|
| 233 |
|
| 234 |
with gr.Row():
|
| 235 |
with gr.Column(scale=1):
|
|
@@ -258,7 +257,7 @@ def create_interface():
|
|
| 258 |
|
| 259 |
with gr.Column(scale=1):
|
| 260 |
gr.Markdown("### 2. Results")
|
| 261 |
-
image_output = gr.Image(label="Generated Image", type="pil", show_download_button=True, height=
|
| 262 |
recapped_prompt_output = gr.Textbox(label="Final Prompt Used", lines=5, interactive=False)
|
| 263 |
status_output = gr.Textbox(label="Status Log", lines=4, interactive=False)
|
| 264 |
|
|
|
|
| 228 |
"""Create Gradio interface"""
|
| 229 |
|
| 230 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 231 |
+
gr.Markdown("# PosterCraft-v1_RL")
|
|
|
|
| 232 |
|
| 233 |
with gr.Row():
|
| 234 |
with gr.Column(scale=1):
|
|
|
|
| 257 |
|
| 258 |
with gr.Column(scale=1):
|
| 259 |
gr.Markdown("### 2. Results")
|
| 260 |
+
image_output = gr.Image(label="Generated Image", type="pil", show_download_button=True, height=250, width=200)
|
| 261 |
recapped_prompt_output = gr.Textbox(label="Final Prompt Used", lines=5, interactive=False)
|
| 262 |
status_output = gr.Textbox(label="Status Log", lines=4, interactive=False)
|
| 263 |
|