Update index.html
Browse files- index.html +12 -0
index.html
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import torch
|
| 3 |
+
import spaces
|
| 4 |
+
from diffusers import DiffusionPipeline
|
| 5 |
+
from PIL import Image
|
| 6 |
+
from typing import List, Optional, Any
|
| 7 |
+
|
| 8 |
+
# --- Model Configuration ---
|
| 9 |
+
MODEL_V1 = "CompVis/stable-diffusion-v1-4"
|
| 10 |
+
MODEL_V2 = "Manojb/stable-diffusion-2-1-base"
|
| 11 |
+
DEVICE = "cuda"
|
| 12 |
+
|
| 13 |
<!DOCTYPE html>
|
| 14 |
<html lang="en">
|
| 15 |
<head>
|