Spaces:
Running
Running
Commit
·
7ffb950
1
Parent(s):
1ef95ec
Update app.py
Browse files
app.py
CHANGED
@@ -74,12 +74,14 @@ def generate_txt2img(current_model, prompt, is_negative=False, image_style="None
|
|
74 |
|
75 |
|
76 |
css = """
|
77 |
-
/* Custom CSS
|
78 |
.gradio-container {
|
79 |
font-family: 'IBM Plex Sans', sans-serif;
|
80 |
-
max-width: 900px
|
81 |
margin: auto;
|
82 |
padding-top: 1.5rem;
|
|
|
|
|
83 |
}
|
84 |
|
85 |
/* Button Styles */
|
@@ -88,87 +90,47 @@ css = """
|
|
88 |
border-color: black;
|
89 |
background: black;
|
90 |
white-space: nowrap;
|
|
|
|
|
91 |
}
|
92 |
|
93 |
-
.gr-button:
|
94 |
-
|
95 |
-
|
96 |
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
97 |
-
--tw-border-opacity: 1;
|
98 |
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
99 |
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px var(--tw-ring-offset-width)) var(--tw-ring-color);
|
100 |
-
--tw-ring-color: rgb(191 219 254 / var(--tw-ring-opacity));
|
101 |
-
--tw-ring-opacity: .5;
|
102 |
}
|
103 |
|
104 |
-
|
105 |
-
|
106 |
-
margin-bottom: 45px;
|
107 |
-
margin-top: 35px;
|
108 |
-
text-align: center;
|
109 |
-
border-bottom: 1px solid #e5e5e5;
|
110 |
}
|
111 |
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
background: white;
|
118 |
}
|
119 |
|
120 |
-
.
|
121 |
-
border-color: #
|
|
|
122 |
}
|
123 |
|
124 |
-
|
125 |
-
|
126 |
-
}
|
127 |
|
128 |
/* Share Button Styles */
|
129 |
#share-btn-container {
|
130 |
-
|
131 |
-
|
132 |
-
justify-content: center;
|
133 |
-
align-items: center;
|
134 |
-
border-radius: 9999px !important;
|
135 |
-
max-width: 13rem;
|
136 |
-
margin-left: auto;
|
137 |
-
}
|
138 |
-
|
139 |
-
#share-btn-container:hover {
|
140 |
-
background-color: #060606;
|
141 |
-
}
|
142 |
-
|
143 |
-
#share-btn {
|
144 |
-
all: initial;
|
145 |
-
color: #ffffff;
|
146 |
-
font-weight: 600;
|
147 |
-
cursor: pointer;
|
148 |
-
font-family: 'IBM Plex Sans', sans-serif;
|
149 |
-
margin-left: 0.5rem !important;
|
150 |
-
padding: 0.5rem !important;
|
151 |
-
right: 0;
|
152 |
}
|
153 |
|
154 |
/* Animation Styles */
|
155 |
-
|
156 |
-
animation: spin 1s linear infinite;
|
157 |
-
}
|
158 |
-
|
159 |
-
@keyframes spin {
|
160 |
-
from { transform: rotate(0deg); }
|
161 |
-
to { transform: rotate(360deg); }
|
162 |
-
}
|
163 |
|
164 |
-
/*
|
165 |
#gallery {
|
166 |
-
|
167 |
-
|
168 |
-
margin-left: auto;
|
169 |
-
margin-right: auto;
|
170 |
-
border-bottom-right-radius: .5rem !important;
|
171 |
-
border-bottom-left-radius: .5rem !important;
|
172 |
}
|
173 |
"""
|
174 |
|
|
|
74 |
|
75 |
|
76 |
css = """
|
77 |
+
/* Custom CSS */
|
78 |
.gradio-container {
|
79 |
font-family: 'IBM Plex Sans', sans-serif;
|
80 |
+
max-width: 900px;
|
81 |
margin: auto;
|
82 |
padding-top: 1.5rem;
|
83 |
+
border-radius: 15px; /* Added border-radius */
|
84 |
+
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adding box shadow for depth */
|
85 |
}
|
86 |
|
87 |
/* Button Styles */
|
|
|
90 |
border-color: black;
|
91 |
background: black;
|
92 |
white-space: nowrap;
|
93 |
+
border-radius: 8px; /* Rounded buttons */
|
94 |
+
transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
|
95 |
}
|
96 |
|
97 |
+
.gr-button:hover {
|
98 |
+
background-color: #555; /* Slightly lighter black on hover */
|
99 |
+
color: #fff;
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
}
|
101 |
|
102 |
+
.gr-button:focus {
|
103 |
+
/* [Rest of the focus styles] */
|
|
|
|
|
|
|
|
|
104 |
}
|
105 |
|
106 |
+
/* Textbox Styles */
|
107 |
+
.gr-textbox {
|
108 |
+
border-radius: 8px; /* Rounded corners for textboxes */
|
109 |
+
border: 1px solid #ccc; /* Adding a subtle border */
|
110 |
+
transition: border-color 0.3s; /* Transition for focus effect */
|
|
|
111 |
}
|
112 |
|
113 |
+
.gr-textbox:focus {
|
114 |
+
border-color: #333; /* Darker border on focus */
|
115 |
+
outline: none; /* Remove default outline */
|
116 |
}
|
117 |
|
118 |
+
/* Footer Styles */
|
119 |
+
/* [No changes needed here unless you want to round corners] */
|
|
|
120 |
|
121 |
/* Share Button Styles */
|
122 |
#share-btn-container {
|
123 |
+
/* [Existing styles] */
|
124 |
+
border-radius: 20px; /* More rounded edges for share button container */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
}
|
126 |
|
127 |
/* Animation Styles */
|
128 |
+
/* [No changes needed here] */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
|
130 |
+
/* Gallery Styles */
|
131 |
#gallery {
|
132 |
+
/* [Existing styles] */
|
133 |
+
border-radius: 12px; /* Rounded corners for the gallery */
|
|
|
|
|
|
|
|
|
134 |
}
|
135 |
"""
|
136 |
|