Commit
·
8efb63c
1
Parent(s):
b44adcc
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
+
API_KEY=os.environ.get('HUGGING_FACE_HUB_TOKEN', None)
|
| 5 |
+
|
| 6 |
+
article = """---
|
| 7 |
+
This space was created using [SD Space Creator](https://huggingface.co/spaces/anzorq/sd-space-creator)."""
|
| 8 |
+
|
| 9 |
+
gr.Interface.load(
|
| 10 |
+
name="models/Duskfallcrew/photography-and-landscapes",
|
| 11 |
+
title="""Photography And Landscapes""",
|
| 12 |
+
description="""Demo for <a href="https://huggingface.co/Duskfallcrew/photography-and-landscapes">Photography And Landscapes</a> Stable Diffusion model.""",
|
| 13 |
+
article=article,
|
| 14 |
+
api_key=API_KEY,
|
| 15 |
+
).queue(concurrency_count=20).launch()
|