Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,11 @@
|
|
1 |
import torch
|
2 |
from diffusers import StableDiffusionPipeline
|
3 |
import gradio as gr
|
|
|
4 |
import spaces
|
5 |
|
|
|
|
|
6 |
if torch.cuda.is_available():
|
7 |
device = "cuda"
|
8 |
print("Using GPU")
|
|
|
1 |
import torch
|
2 |
from diffusers import StableDiffusionPipeline
|
3 |
import gradio as gr
|
4 |
+
import os
|
5 |
import spaces
|
6 |
|
7 |
+
HF_TOKEN = os.getenv['HF_TOKEN']
|
8 |
+
|
9 |
if torch.cuda.is_available():
|
10 |
device = "cuda"
|
11 |
print("Using GPU")
|