Transformers

Run this model with HF Jobs

Run airomix/sd on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/airomix/sd. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/airomix/sd on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
sd / extensions /tunnels /scripts /try_cloudflare.py
airomix's picture
Upload 511 files
8e68b99
Raw History Blame Contribute Delete
1.02 kB
from pycloudflared import try_cloudflare
from modules.shared import cmd_opts
from gradio import strings
import os
if cmd_opts.cloudflared:
print("cloudflared detected, trying to connect...")
port = cmd_opts.port if cmd_opts.port else 7860
tunnel_url = try_cloudflare(port=port, verbose=False)
os.environ['webui_url'] = tunnel_url.tunnel
colab_url = os.getenv('colab_url')
strings.en["SHARE_LINK_MESSAGE"] = f"Public WebUI Colab URL: {tunnel_url.tunnel}"
strings.en["PUBLIC_SHARE_TRUE"] = f"Public WebUI Colab URL: {tunnel_url.tunnel}"
if cmd_opts.multiple:
print("all detected, cloudflared trying to connect...")
port = cmd_opts.port if cmd_opts.port else 7860
tunnel_url = try_cloudflare(port=port, verbose=False)
os.environ['webui_url'] = tunnel_url.tunnel
colab_url = os.getenv('colab_url')
strings.en["SHARE_LINK_MESSAGE"] = f"Public WebUI Colab URL: {tunnel_url.tunnel}"
strings.en["PUBLIC_SHARE_TRUE"] = f"Public WebUI Colab URL: {tunnel_url.tunnel}"