Spaces:
Runtime error
Runtime error
Upload 3 files
Browse files- README.md +1 -1
- app.py +4 -2
- requirements.txt +11 -7
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🧟
|
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: openrail++
|
|
|
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 6.25.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: openrail++
|
app.py
CHANGED
|
@@ -186,7 +186,8 @@ EXAMPLES = [
|
|
| 186 |
["https://example.com", "aerial view of a snowy forest, winding paths, cinematic, highly detailed"],
|
| 187 |
]
|
| 188 |
|
| 189 |
-
|
|
|
|
| 190 |
gr.Markdown(
|
| 191 |
"""
|
| 192 |
# 🧟 QR Code Monster
|
|
@@ -265,4 +266,5 @@ with gr.Blocks(title="QR Code Monster", theme=gr.themes.Soft()) as demo:
|
|
| 265 |
)
|
| 266 |
|
| 267 |
if __name__ == "__main__":
|
| 268 |
-
|
|
|
|
|
|
| 186 |
["https://example.com", "aerial view of a snowy forest, winding paths, cinematic, highly detailed"],
|
| 187 |
]
|
| 188 |
|
| 189 |
+
# Gradio 6: theme/css/title gehören in launch(), nicht mehr in gr.Blocks()
|
| 190 |
+
with gr.Blocks() as demo:
|
| 191 |
gr.Markdown(
|
| 192 |
"""
|
| 193 |
# 🧟 QR Code Monster
|
|
|
|
| 266 |
)
|
| 267 |
|
| 268 |
if __name__ == "__main__":
|
| 269 |
+
# Queueing ist seit Gradio 5 standardmäßig aktiv.
|
| 270 |
+
demo.launch(theme=gr.themes.Soft())
|
requirements.txt
CHANGED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
-
torch
|
| 2 |
-
diffusers>=0.
|
| 3 |
-
transformers>=
|
| 4 |
-
|
|
|
|
| 5 |
safetensors
|
| 6 |
-
qrcode[pil]>=
|
| 7 |
Pillow
|
| 8 |
-
|
| 9 |
-
#
|
|
|
|
|
|
|
|
|
|
| 10 |
spaces
|
|
|
|
| 1 |
+
# torch und gradio liefert das Space-Basisimage bzw. sdk_version - hier NICHT pinnen.
|
| 2 |
+
diffusers>=0.40.0
|
| 3 |
+
transformers>=5.15.0
|
| 4 |
+
huggingface_hub>=1.23.0
|
| 5 |
+
accelerate>=1.14.0
|
| 6 |
safetensors
|
| 7 |
+
qrcode[pil]>=8.0
|
| 8 |
Pillow
|
| 9 |
+
|
| 10 |
+
# Python 3.13 hat das Stdlib-Modul audioop entfernt (PEP 594),
|
| 11 |
+
# gradio -> pydub braucht es aber weiterhin. Backport nachreichen:
|
| 12 |
+
audioop-lts; python_version >= "3.13"
|
| 13 |
+
|
| 14 |
spaces
|