Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,14 +3,6 @@ import os
|
|
| 3 |
import random
|
| 4 |
import subprocess
|
| 5 |
import sys
|
| 6 |
-
|
| 7 |
-
# The Krea2 pipeline ships as a private diffusers build bundled with this Space.
|
| 8 |
-
# Install it from the local wheel at runtime (the repo files are present here,
|
| 9 |
-
# unlike during the build-time pip step).
|
| 10 |
-
_wheel = glob.glob(os.path.join(os.path.dirname(__file__), "diffusers-*.whl"))
|
| 11 |
-
if _wheel:
|
| 12 |
-
subprocess.check_call([sys.executable, "-m", "pip", "install", "--no-cache-dir", _wheel[0]])
|
| 13 |
-
|
| 14 |
import spaces
|
| 15 |
import torch
|
| 16 |
import gradio as gr
|
|
|
|
| 3 |
import random
|
| 4 |
import subprocess
|
| 5 |
import sys
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
import spaces
|
| 7 |
import torch
|
| 8 |
import gradio as gr
|