Spaces:
Paused
Paused
Merge branch 'main' of https://huggingface.co/spaces/AI4Editing/MagicQuill
Browse files1234562 unmodified lines910111213---title: MagicQuillemoji: 📉colorFrom: purplecolorTo: yellowsdk: gradio2 unmodified linespinned: falselicense: cc-by-nc-4.0---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference1234562 unmodified lines91011121314---title: MagicQuillemoji: 🪶colorFrom: purplecolorTo: yellowsdk: gradio2 unmodified linespinned: falselicense: cc-by-nc-4.0---The paper is [MagicQuill: An Intelligent Interactive Image Editing System](https://huggingface.co/papers/2411.09703).Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference.
24 unmodified lines2526272829303132167 unmodified lines20020120220320420520696 unmodified lines30330430530630730830931031131224 unmodified linesimport requestssnapshot_download(repo_id="LiuZichen/MagicQuill-models", repo_type="model", local_dir="models")HF_TOKEN = os.environ.get("HF_TOKEN")client = Client("LiuZichen/DrawNGuess", hf_token=HF_TOKEN)scribbleColorEditModel = ScribbleColorEditModel()def tensor_to_numpy(tensor):167 unmodified linestext = gr.Markdown("""# Welcome to MagicQuill!Click the [link](https://magicquill.art) to view our demo and tutorial.""")with gr.Row(elem_classes="row"):ms = MagicQuill(theme="light")96 unmodified lineswith gr.Row(elem_classes="row"):text = gr.Markdown("""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的许可协议限制。我们强烈建议,用户不应传播及不应允许他人传播以下内容,包括但不限于仇恨言论、暴力、色情、欺诈相关的有害信息。)""")demo.queue(max_size=20, status_update_rate=0.1)app = FastAPI()@app.post("/magic_quill/guess_prompt")24 unmodified lines252627282930313233167 unmodified lines20120220320420520620796 unmodified lines30430530630730830931031131231324 unmodified linesimport requestssnapshot_download(repo_id="LiuZichen/MagicQuill-models", repo_type="model", local_dir="models")# HF_TOKEN = os.environ.get("HF_TOKEN")# The client has been made public. Welcome to duplicate our repo.client = Client("LiuZichen/DrawNGuess")scribbleColorEditModel = ScribbleColorEditModel()def tensor_to_numpy(tensor):167 unmodified linestext = gr.Markdown("""# Welcome to MagicQuill!Click the [link](https://magicquill.art) to view our demo and tutorial. Give us a [GitHub star](https://github.com/magic-quill/magicquill) if you are interested.""")with gr.Row(elem_classes="row"):ms = MagicQuill(theme="light")96 unmodified lineswith gr.Row(elem_classes="row"):text = gr.Markdown("""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的许可协议限制。我们强烈建议,用户不应传播及不应允许他人传播以下内容,包括但不限于仇恨言论、暴力、色情、欺诈相关的有害信息。)""")demo.queue(max_size=20, status_update_rate=0.1)app = FastAPI()@app.post("/magic_quill/guess_prompt")
README.md+3-2
app.py+7-6