Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -127,12 +127,12 @@ with gr.Blocks() as demo:
|
|
127 |
title = gr.Textbox(label="Title", placeholder="e.g. Diffusers Demo")
|
128 |
description = gr.Textbox(label="Description", placeholder="e.g. Demo for my awesome Diffusers model")
|
129 |
prefix = gr.Textbox(label="Prefix tokens", placeholder="Tokens that are required to be present in the prompt, e.g. `rick and morty style`")
|
130 |
-
update = gr.Checkbox(label="Update the space if it already exists?")
|
131 |
-
|
132 |
gr.Markdown("""#### Choose space type
|
133 |
- **Simple** - Runs on GPU using Hugging Face inference API, but you cannot control image generation parameters.
|
134 |
- **Advanced** - Runs on CPU by default, with the option to upgrade to GPU. You can control image generation parameters: guidance, number of steps, image size, etc. Also supports **image-to-image** generation.""")
|
135 |
space_type =gr.Radio(label="Space type", choices=["Simple", "Advanced"], value="Simple")
|
|
|
|
|
136 |
|
137 |
brn_create = gr.Button("Create the space")
|
138 |
|
|
|
127 |
title = gr.Textbox(label="Title", placeholder="e.g. Diffusers Demo")
|
128 |
description = gr.Textbox(label="Description", placeholder="e.g. Demo for my awesome Diffusers model")
|
129 |
prefix = gr.Textbox(label="Prefix tokens", placeholder="Tokens that are required to be present in the prompt, e.g. `rick and morty style`")
|
|
|
|
|
130 |
gr.Markdown("""#### Choose space type
|
131 |
- **Simple** - Runs on GPU using Hugging Face inference API, but you cannot control image generation parameters.
|
132 |
- **Advanced** - Runs on CPU by default, with the option to upgrade to GPU. You can control image generation parameters: guidance, number of steps, image size, etc. Also supports **image-to-image** generation.""")
|
133 |
space_type =gr.Radio(label="Space type", choices=["Simple", "Advanced"], value="Simple")
|
134 |
+
update = gr.Checkbox(label="Update the space if it already exists?")
|
135 |
+
|
136 |
|
137 |
brn_create = gr.Button("Create the space")
|
138 |
|