Spaces:
Runtime error
Runtime error
LIU, Zichen
commited on
Commit
·
19cf0e0
1
Parent(s):
ca78dbf
update license and notes
Browse files
README.md
CHANGED
|
@@ -7,7 +7,7 @@ sdk: gradio
|
|
| 7 |
sdk_version: 4.44.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
-
license:
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 7 |
sdk_version: 4.44.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
license: cc-by-nc-4.0
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
|
@@ -196,6 +196,12 @@ css = '''
|
|
| 196 |
'''
|
| 197 |
|
| 198 |
with gr.Blocks(css=css) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
with gr.Row(elem_classes="row"):
|
| 200 |
ms = MagicQuill()
|
| 201 |
with gr.Row(elem_classes="row"):
|
|
@@ -293,6 +299,12 @@ with gr.Blocks(css=css) as demo:
|
|
| 293 |
interactive=True
|
| 294 |
)
|
| 295 |
btn.click(generate_image_handler, inputs=[ms, ckpt_name, negative_prompt, fine_edge, grow_size, edge_strength, color_strength, inpaint_strength, seed, steps, cfg, sampler_name, scheduler], outputs=ms, concurrency_limit=1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 296 |
|
| 297 |
demo.queue(max_size=20, status_update_rate=0.1)
|
| 298 |
app = FastAPI()
|
|
|
|
| 196 |
'''
|
| 197 |
|
| 198 |
with gr.Blocks(css=css) as demo:
|
| 199 |
+
with gr.Row(elem_classes="row"):
|
| 200 |
+
text = gr.Markdown(
|
| 201 |
+
"""
|
| 202 |
+
# Welcome to MagicQuill!
|
| 203 |
+
Cleck the [link](https://magicquill.art/demo/) to view our demo and tutorial.
|
| 204 |
+
""")
|
| 205 |
with gr.Row(elem_classes="row"):
|
| 206 |
ms = MagicQuill()
|
| 207 |
with gr.Row(elem_classes="row"):
|
|
|
|
| 299 |
interactive=True
|
| 300 |
)
|
| 301 |
btn.click(generate_image_handler, inputs=[ms, ckpt_name, negative_prompt, fine_edge, grow_size, edge_strength, color_strength, inpaint_strength, seed, steps, cfg, sampler_name, scheduler], outputs=ms, concurrency_limit=1)
|
| 302 |
+
|
| 303 |
+
with gr.Row(elem_classes="row"):
|
| 304 |
+
text = gr.Markdown(
|
| 305 |
+
"""
|
| 306 |
+
Note: This demo is governed by the license of CC BY-NC 4.0 We strongly advise users not to knowingly generate or allow others to knowingly generate harmful content, including hate speech, violence, pornography, deception, etc. (注:本演示受CC BY-NC的许可协议限制。我们强烈建议,用户不应传播及不应允许他人传播以下内容,包括但不限于仇恨言论、暴力、色情、欺诈相关的有害信息。)
|
| 307 |
+
""")
|
| 308 |
|
| 309 |
demo.queue(max_size=20, status_update_rate=0.1)
|
| 310 |
app = FastAPI()
|