Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -155,7 +155,7 @@ def create_and_push(space_type, hardware, private_space, add_badge, other_model_
|
|
155 |
|
156 |
return f"""
|
157 |
Successfully created space at: <a href="{repo_url}" target="_blank">{repo_url}</a> <br>
|
158 |
-
Opened a PR to add the space badge at: <a href="https://huggingface.co/{model_id}" target="_blank">https://huggingface.co/{
|
159 |
"""
|
160 |
|
161 |
except Exception as e:
|
@@ -200,7 +200,7 @@ with gr.Blocks() as demo:
|
|
200 |
name = gr.Textbox(label="Name", placeholder="e.g. diffusers-demo")
|
201 |
title = gr.Textbox(label="Title", placeholder="e.g. Diffusers Demo")
|
202 |
description = gr.Textbox(label="Description", placeholder="e.g. Demo for my awesome Diffusers model", lines=5)
|
203 |
-
original_model_id = gr.Textbox(visible=
|
204 |
prefix = gr.Textbox(label="Prefix tokens", placeholder="Tokens that are required to be present in the prompt, e.g. `rick and morty style`")
|
205 |
|
206 |
gr.Markdown("""#### Choose space type
|
|
|
155 |
|
156 |
return f"""
|
157 |
Successfully created space at: <a href="{repo_url}" target="_blank">{repo_url}</a> <br>
|
158 |
+
Opened a PR to add the space badge at: <a href="https://huggingface.co/{model_id}" target="_blank">https://huggingface.co/{original_model_id}</a>
|
159 |
"""
|
160 |
|
161 |
except Exception as e:
|
|
|
200 |
name = gr.Textbox(label="Name", placeholder="e.g. diffusers-demo")
|
201 |
title = gr.Textbox(label="Title", placeholder="e.g. Diffusers Demo")
|
202 |
description = gr.Textbox(label="Description", placeholder="e.g. Demo for my awesome Diffusers model", lines=5)
|
203 |
+
original_model_id = gr.Textbox(visible=False)
|
204 |
prefix = gr.Textbox(label="Prefix tokens", placeholder="Tokens that are required to be present in the prompt, e.g. `rick and morty style`")
|
205 |
|
206 |
gr.Markdown("""#### Choose space type
|