Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,15 +38,14 @@ def selectModel(message):
|
|
| 38 |
return c_model
|
| 39 |
|
| 40 |
sandbox = gr.Interface.load(
|
| 41 |
-
fn
|
| 42 |
-
name= custom_model,
|
| 43 |
title="""AlStable sandbox""",
|
| 44 |
-
|
| 45 |
description="""Demo for <a href="https://huggingface.co/stabilityai/stable-diffusion-2-1">AlStable</a> Stable Diffusion model.""",
|
| 46 |
article=article,
|
| 47 |
api_key=API_KEY
|
| 48 |
)
|
| 49 |
|
| 50 |
-
sandbox.custom_model=sandbox.selectModel(
|
| 51 |
|
| 52 |
sandbox.queue(concurrency_count=20).launch()
|
|
|
|
| 38 |
return c_model
|
| 39 |
|
| 40 |
sandbox = gr.Interface.load(
|
| 41 |
+
fn= selectModel,
|
|
|
|
| 42 |
title="""AlStable sandbox""",
|
| 43 |
+
inputs = gr.Textbox(label="Prompt", show_label=False, max_lines=2, placeholder="Enter your prompt~", elem_id="input-prompt"),
|
| 44 |
description="""Demo for <a href="https://huggingface.co/stabilityai/stable-diffusion-2-1">AlStable</a> Stable Diffusion model.""",
|
| 45 |
article=article,
|
| 46 |
api_key=API_KEY
|
| 47 |
)
|
| 48 |
|
| 49 |
+
"""sandbox.custom_model=sandbox.selectModel(inputs)"""
|
| 50 |
|
| 51 |
sandbox.queue(concurrency_count=20).launch()
|