Spaces:
Runtime error
Runtime error
Commit
·
91ef084
1
Parent(s):
3bab0ce
Update app.py
Browse files
app.py
CHANGED
@@ -80,8 +80,8 @@ css = """
|
|
80 |
max-width: 900px;
|
81 |
margin: auto;
|
82 |
padding-top: 1.5rem;
|
83 |
-
border-radius: 15px; /*
|
84 |
-
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /*
|
85 |
}
|
86 |
|
87 |
/* Button Styles */
|
@@ -90,53 +90,53 @@ css = """
|
|
90 |
border-color: black;
|
91 |
background: black;
|
92 |
white-space: nowrap;
|
93 |
-
border-radius: 8px; /*
|
94 |
-
transition: background-color 0.3s, color 0.3s; /*
|
95 |
}
|
96 |
|
97 |
.gr-button:hover {
|
98 |
-
background-color: #555; /*
|
99 |
color: #fff;
|
100 |
}
|
101 |
|
102 |
.gr-button:focus {
|
103 |
-
/* [
|
104 |
}
|
105 |
|
106 |
/* Textbox Styles */
|
107 |
.gr-textbox {
|
108 |
-
border-radius: 8px; /*
|
109 |
-
border: 1px solid #ccc; /*
|
110 |
-
transition: border-color 0.3s; /*
|
111 |
}
|
112 |
|
113 |
.gr-textbox:focus {
|
114 |
-
border-color: #333; /*
|
115 |
-
outline: none; /*
|
116 |
}
|
117 |
|
118 |
/* Footer Styles */
|
119 |
-
/* [
|
120 |
|
121 |
/* Share Button Styles */
|
122 |
#share-btn-container {
|
123 |
-
/* [
|
124 |
-
border-radius: 20px; /*
|
125 |
}
|
126 |
|
127 |
/* Animation Styles */
|
128 |
-
/* [
|
129 |
|
130 |
/* Gallery Styles */
|
131 |
#gallery {
|
132 |
-
/* [
|
133 |
-
border-radius: 12px; /*
|
134 |
}
|
135 |
|
136 |
-
/*
|
137 |
.gradio-container img {
|
138 |
-
max-width:
|
139 |
-
height: auto; /*
|
140 |
}
|
141 |
"""
|
142 |
|
|
|
80 |
max-width: 900px;
|
81 |
margin: auto;
|
82 |
padding-top: 1.5rem;
|
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 |
}
|
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 hover effect transition */
|
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 |
+
/* [Other focus styles] */
|
104 |
}
|
105 |
|
106 |
/* Textbox Styles */
|
107 |
.gr-textbox {
|
108 |
+
border-radius: 8px; /* Rounded corners for textboxes */
|
109 |
+
border: 1px solid #ccc; /* Add 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 rounded corners] */
|
120 |
|
121 |
/* Share Button Styles */
|
122 |
#share-btn-container {
|
123 |
+
/* [Existing styles] */
|
124 |
+
border-radius: 20px; /* More rounded edges for the 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 |
+
/* Reduce image size */
|
137 |
.gradio-container img {
|
138 |
+
max-width: 50%; /* Adjust the percentage to make images smaller */
|
139 |
+
height: auto; /* Maintain aspect ratio */
|
140 |
}
|
141 |
"""
|
142 |
|