Muhammad Anas Akhtar
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
from diffusers import StableDiffusion3Pipeline
|
|
|
|
|
|
|
|
|
4 |
|
5 |
def image_generation(prompt):
|
6 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
from diffusers import StableDiffusion3Pipeline
|
4 |
+
from huggingface_hub import login
|
5 |
+
|
6 |
+
login(token="keyss")
|
7 |
+
|
8 |
|
9 |
def image_generation(prompt):
|
10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|