Spaces:
Running
Running
Commit
·
9da3499
1
Parent(s):
2879cae
Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,8 @@ css = """
|
|
78 |
font-family: 'IBM Plex Sans', sans-serif;
|
79 |
max-width: 900px;
|
80 |
margin: auto;
|
81 |
-
padding
|
|
|
82 |
border-radius: 15px; /* Add rounded corners */
|
83 |
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a box shadow for depth */
|
84 |
}
|
@@ -86,9 +87,9 @@ css = """
|
|
86 |
/* Button Styles */
|
87 |
.gr-button {
|
88 |
color: white;
|
89 |
-
border-color: black;
|
90 |
background: black;
|
91 |
-
|
|
|
92 |
border-radius: 8px; /* Rounded buttons */
|
93 |
transition: background-color 0.3s, color 0.3s; /* Smooth hover effect transition */
|
94 |
}
|
@@ -98,14 +99,11 @@ css = """
|
|
98 |
color: #fff;
|
99 |
}
|
100 |
|
101 |
-
.gr-button:focus {
|
102 |
-
/* [Other focus styles] */
|
103 |
-
}
|
104 |
-
|
105 |
/* Textbox Styles */
|
106 |
.gr-textbox {
|
107 |
border-radius: 8px; /* Rounded corners for textboxes */
|
108 |
border: 1px solid #ccc; /* Add a subtle border */
|
|
|
109 |
transition: border-color 0.3s; /* Transition for focus effect */
|
110 |
}
|
111 |
|
@@ -114,39 +112,18 @@ css = """
|
|
114 |
outline: none; /* Remove default outline */
|
115 |
}
|
116 |
|
117 |
-
/* Footer Styles */
|
118 |
-
/* [No changes needed here unless you want rounded corners] */
|
119 |
-
|
120 |
-
/* Share Button Styles */
|
121 |
-
#share-btn-container {
|
122 |
-
/* [Existing styles] */
|
123 |
-
border-radius: 20px; /* More rounded edges for the share button container */
|
124 |
-
}
|
125 |
-
|
126 |
-
/* Animation Styles */
|
127 |
-
/* [No changes needed here] */
|
128 |
-
|
129 |
/* Gallery Styles */
|
130 |
#gallery {
|
131 |
-
|
132 |
-
|
133 |
-
align-items: center; /* Center vertically */
|
134 |
-
/* [Existing styles] */
|
135 |
-
border-radius: 5px; /* Rounded corners for the gallery */
|
136 |
}
|
137 |
|
138 |
/* Automatically adjust photo size */
|
139 |
#gallery img {
|
140 |
-
max-width:
|
141 |
height: auto; /* Maintain aspect ratio */
|
|
|
142 |
}
|
143 |
-
|
144 |
-
/* Reduce image size */
|
145 |
-
.gradio-container img {
|
146 |
-
max-width: 50%; /* Images don't exceed 50% of the gallery's width */
|
147 |
-
height: auto; /* Maintain aspect ratio */
|
148 |
-
}
|
149 |
-
|
150 |
"""
|
151 |
|
152 |
# Creating Gradio interface
|
|
|
78 |
font-family: 'IBM Plex Sans', sans-serif;
|
79 |
max-width: 900px;
|
80 |
margin: auto;
|
81 |
+
padding: 1.5rem; /* Add padding for spacing */
|
82 |
+
border: 1px solid #ccc; /* Add a subtle border */
|
83 |
border-radius: 15px; /* Add rounded corners */
|
84 |
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a box shadow for depth */
|
85 |
}
|
|
|
87 |
/* Button Styles */
|
88 |
.gr-button {
|
89 |
color: white;
|
|
|
90 |
background: black;
|
91 |
+
border: none; /* Remove the border */
|
92 |
+
padding: 10px 20px; /* Add padding for a more prominent button */
|
93 |
border-radius: 8px; /* Rounded buttons */
|
94 |
transition: background-color 0.3s, color 0.3s; /* Smooth hover effect transition */
|
95 |
}
|
|
|
99 |
color: #fff;
|
100 |
}
|
101 |
|
|
|
|
|
|
|
|
|
102 |
/* Textbox Styles */
|
103 |
.gr-textbox {
|
104 |
border-radius: 8px; /* Rounded corners for textboxes */
|
105 |
border: 1px solid #ccc; /* Add a subtle border */
|
106 |
+
padding: 10px; /* Add padding for spacing */
|
107 |
transition: border-color 0.3s; /* Transition for focus effect */
|
108 |
}
|
109 |
|
|
|
112 |
outline: none; /* Remove default outline */
|
113 |
}
|
114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
/* Gallery Styles */
|
116 |
#gallery {
|
117 |
+
text-align: center; /* Center the content horizontally */
|
118 |
+
margin-top: 20px; /* Add spacing between the gallery and other elements */
|
|
|
|
|
|
|
119 |
}
|
120 |
|
121 |
/* Automatically adjust photo size */
|
122 |
#gallery img {
|
123 |
+
max-width: 100%; /* Images scale to fit the gallery's width */
|
124 |
height: auto; /* Maintain aspect ratio */
|
125 |
+
border-radius: 12px; /* Rounded corners for images */
|
126 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
"""
|
128 |
|
129 |
# Creating Gradio interface
|