Spaces:
Runtime error
Runtime error
Commit
·
fa07f4a
1
Parent(s):
445a9bd
Update app.py
Browse files
app.py
CHANGED
@@ -73,21 +73,20 @@ def generate_txt2img(current_model, prompt, is_negative=False, image_style="None
|
|
73 |
return image
|
74 |
|
75 |
css = """
|
76 |
-
/*
|
77 |
.gradio-container {
|
78 |
font-family: 'IBM Plex Sans', sans-serif;
|
79 |
-
max-width:
|
80 |
margin: auto;
|
81 |
-
padding:
|
82 |
-
border-radius: 15px;
|
83 |
-
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
|
84 |
text-align: center; /* Center the content horizontally */
|
85 |
}
|
86 |
|
87 |
/* Button Styles */
|
88 |
.gr-button {
|
89 |
color: white;
|
90 |
-
background
|
|
|
91 |
border: none;
|
92 |
padding: 10px 20px;
|
93 |
border-radius: 8px;
|
@@ -96,27 +95,45 @@ css = """
|
|
96 |
}
|
97 |
|
98 |
.gr-button:hover {
|
99 |
-
background-color: #
|
100 |
}
|
101 |
|
102 |
-
/*
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
109 |
|
110 |
-
|
111 |
-
|
112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
}
|
114 |
|
115 |
/* Centered Container for the Image */
|
116 |
.image-container {
|
117 |
max-width: 100%; /* Set the maximum width for the container */
|
118 |
-
margin:
|
119 |
-
text-align: center; /* Center the content inside the container horizontally */
|
120 |
padding: 20px; /* Add padding for spacing */
|
121 |
border: 1px solid #ccc; /* Add a subtle border to the container */
|
122 |
border-radius: 10px;
|
|
|
73 |
return image
|
74 |
|
75 |
css = """
|
76 |
+
/* General Container Styles */
|
77 |
.gradio-container {
|
78 |
font-family: 'IBM Plex Sans', sans-serif;
|
79 |
+
max-width: 730px !important;
|
80 |
margin: auto;
|
81 |
+
padding-top: 1.5rem;
|
|
|
|
|
82 |
text-align: center; /* Center the content horizontally */
|
83 |
}
|
84 |
|
85 |
/* Button Styles */
|
86 |
.gr-button {
|
87 |
color: white;
|
88 |
+
background: black;
|
89 |
+
white-space: nowrap;
|
90 |
border: none;
|
91 |
padding: 10px 20px;
|
92 |
border-radius: 8px;
|
|
|
95 |
}
|
96 |
|
97 |
.gr-button:hover {
|
98 |
+
background-color: #060606; /* Darken the background color on hover */
|
99 |
}
|
100 |
|
101 |
+
/* Share Button Styles */
|
102 |
+
#share-btn-container {
|
103 |
+
padding: 0.5rem !important;
|
104 |
+
background-color: #000000;
|
105 |
+
justify-content: center;
|
106 |
+
align-items: center;
|
107 |
+
border-radius: 9999px !important;
|
108 |
+
max-width: 13rem;
|
109 |
+
margin: 0 auto; /* Center the container horizontally */
|
110 |
+
}
|
111 |
+
|
112 |
+
#share-btn-container:hover {
|
113 |
+
background-color: #060606;
|
114 |
}
|
115 |
|
116 |
+
#share-btn {
|
117 |
+
all: initial;
|
118 |
+
color: #ffffff;
|
119 |
+
font-weight: 600;
|
120 |
+
cursor: pointer;
|
121 |
+
font-family: 'IBM Plex Sans', sans-serif;
|
122 |
+
margin: 0.5rem !important;
|
123 |
+
padding: 0.5rem !important;
|
124 |
+
}
|
125 |
+
/* Other Styles */
|
126 |
+
#gallery {
|
127 |
+
min-height: 22rem;
|
128 |
+
margin: auto; /* Center the gallery horizontally */
|
129 |
+
border-bottom-right-radius: 0.5rem !important;
|
130 |
+
border-bottom-left-radius: 0.5rem !important;
|
131 |
}
|
132 |
|
133 |
/* Centered Container for the Image */
|
134 |
.image-container {
|
135 |
max-width: 100%; /* Set the maximum width for the container */
|
136 |
+
margin: auto; /* Center the container horizontally */
|
|
|
137 |
padding: 20px; /* Add padding for spacing */
|
138 |
border: 1px solid #ccc; /* Add a subtle border to the container */
|
139 |
border-radius: 10px;
|