Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,7 +57,7 @@ def promptifier(prompt):
|
|
| 57 |
return "".join([response.token.text for response in stream if response.token.text != "</s>"])
|
| 58 |
|
| 59 |
# Generator
|
| 60 |
-
@spaces.GPU(duration=
|
| 61 |
def king(type ,
|
| 62 |
input_image ,
|
| 63 |
instruction: str ,
|
|
@@ -210,7 +210,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
| 210 |
negative_prompt = gr.Text(
|
| 211 |
label="Negative prompt",
|
| 212 |
max_lines=1,
|
| 213 |
-
value="(deformed
|
| 214 |
visible=True)
|
| 215 |
with gr.Row():
|
| 216 |
width = gr.Slider( label="Width", minimum=256, maximum=2048, step=64, value=1024)
|
|
|
|
| 57 |
return "".join([response.token.text for response in stream if response.token.text != "</s>"])
|
| 58 |
|
| 59 |
# Generator
|
| 60 |
+
@spaces.GPU(duration=60, queue=False)
|
| 61 |
def king(type ,
|
| 62 |
input_image ,
|
| 63 |
instruction: str ,
|
|
|
|
| 210 |
negative_prompt = gr.Text(
|
| 211 |
label="Negative prompt",
|
| 212 |
max_lines=1,
|
| 213 |
+
value="(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation",
|
| 214 |
visible=True)
|
| 215 |
with gr.Row():
|
| 216 |
width = gr.Slider( label="Width", minimum=256, maximum=2048, step=64, value=1024)
|