Spaces:
Runtime error
Runtime error
disable interactive negative_prompt if shared_ui
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def safety_check(user_prompt):
|
|
| 41 |
return cleaned_text.lstrip("\n")
|
| 42 |
|
| 43 |
|
| 44 |
-
is_shared_ui = True if "fffiloni/consistent-character" in os.environ['SPACE_ID'] else False
|
| 45 |
|
| 46 |
from utils.gradio_helpers import parse_outputs, process_outputs
|
| 47 |
|
|
@@ -164,7 +164,8 @@ with gr.Blocks(css=css) as app:
|
|
| 164 |
|
| 165 |
negative_prompt = gr.Textbox(
|
| 166 |
label="Negative Prompt", info='''Things you do not want to see in your image''',
|
| 167 |
-
value="text, watermark, lowres, low quality, worst quality, deformed, glitch, low contrast, noisy, saturation, blurry"
|
|
|
|
| 168 |
)
|
| 169 |
|
| 170 |
with gr.Row():
|
|
|
|
| 41 |
return cleaned_text.lstrip("\n")
|
| 42 |
|
| 43 |
|
| 44 |
+
is_shared_ui = True if "fffiloni/consistent-character" in os.environ['SPACE_ID'] else False
|
| 45 |
|
| 46 |
from utils.gradio_helpers import parse_outputs, process_outputs
|
| 47 |
|
|
|
|
| 164 |
|
| 165 |
negative_prompt = gr.Textbox(
|
| 166 |
label="Negative Prompt", info='''Things you do not want to see in your image''',
|
| 167 |
+
value="text, watermark, lowres, low quality, worst quality, deformed, glitch, low contrast, noisy, saturation, blurry",
|
| 168 |
+
interactive=False if is_shared_ui else True
|
| 169 |
)
|
| 170 |
|
| 171 |
with gr.Row():
|