Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ import random
|
|
4 |
import spaces
|
5 |
import torch
|
6 |
from diffusers import DiffusionPipeline, FlowMatchEulerDiscreteScheduler
|
7 |
-
from transformers import CLIPTextModel, CLIPTokenizer, T5EncoderModel, T5TokenizerFast
|
8 |
|
9 |
dtype = torch.bfloat16
|
10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
@@ -40,17 +39,20 @@ examples = [
|
|
40 |
|
41 |
css = """
|
42 |
body {
|
43 |
-
background-color: #
|
44 |
color: #005662;
|
|
|
45 |
}
|
46 |
#col-container {
|
47 |
margin: 0 auto;
|
48 |
-
max-width:
|
|
|
49 |
}
|
50 |
.gr-button {
|
51 |
background-color: #0288d1;
|
52 |
color: white;
|
53 |
border-radius: 8px;
|
|
|
54 |
}
|
55 |
.gr-button:hover {
|
56 |
background-color: #0277bd;
|
@@ -75,6 +77,11 @@ body {
|
|
75 |
.gr-slider-thumb {
|
76 |
background-color: #005662 !important;
|
77 |
}
|
|
|
|
|
|
|
|
|
|
|
78 |
"""
|
79 |
|
80 |
with gr.Blocks(css=css) as demo:
|
|
|
4 |
import spaces
|
5 |
import torch
|
6 |
from diffusers import DiffusionPipeline, FlowMatchEulerDiscreteScheduler
|
|
|
7 |
|
8 |
dtype = torch.bfloat16
|
9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
39 |
|
40 |
css = """
|
41 |
body {
|
42 |
+
background-color: #f4faff;
|
43 |
color: #005662;
|
44 |
+
font-family: Arial, sans-serif;
|
45 |
}
|
46 |
#col-container {
|
47 |
margin: 0 auto;
|
48 |
+
max-width: 100%;
|
49 |
+
padding: 20px;
|
50 |
}
|
51 |
.gr-button {
|
52 |
background-color: #0288d1;
|
53 |
color: white;
|
54 |
border-radius: 8px;
|
55 |
+
transition: background-color 0.3s ease;
|
56 |
}
|
57 |
.gr-button:hover {
|
58 |
background-color: #0277bd;
|
|
|
77 |
.gr-slider-thumb {
|
78 |
background-color: #005662 !important;
|
79 |
}
|
80 |
+
.gr-text-input, .gr-image {
|
81 |
+
width: 100%;
|
82 |
+
box-sizing: border-box;
|
83 |
+
margin-bottom: 10px;
|
84 |
+
}
|
85 |
"""
|
86 |
|
87 |
with gr.Blocks(css=css) as demo:
|