alers's picture
Upload app.py with huggingface_hub
dd0b825
raw
history blame contribute delete
557 Bytes
import os
import gradio as gr
API_KEY=os.environ.get('HUGGING_FACE_HUB_TOKEN', None)
article = """---
This space was created using [SD Space Creator](https://huggingface.co/spaces/anzorq/sd-space-creator)."""
gr.Interface.load(
name="models/stabilityai/stable-diffusion-2",
title="""Atardecer en la playa""",
description="""Demo by alers for <a href="https://huggingface.co/stabilityai/stable-diffusion-2">Stable Diffusion 2</a> Stable Diffusion model.""",
article=article,
api_key=API_KEY,
).queue(concurrency_count=20).launch()