Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -103,14 +103,14 @@ def model_generate_ans(img=None,img_audio=None,val_q=None):
|
|
103 |
|
104 |
with gr.Blocks() as demo:
|
105 |
|
106 |
-
|
107 |
gr.Markdown(
|
108 |
"""
|
109 |
<style>
|
110 |
/* General Layout */
|
111 |
body {
|
112 |
font-family: 'Arial', sans-serif;
|
113 |
-
background-color: #
|
114 |
margin: 0;
|
115 |
padding: 0;
|
116 |
}
|
@@ -118,13 +118,13 @@ with gr.Blocks() as demo:
|
|
118 |
/* Header */
|
119 |
h1, h2, h3 {
|
120 |
text-align: center;
|
121 |
-
color: #
|
122 |
font-weight: bold;
|
123 |
}
|
124 |
|
125 |
gr-Markdown h1 {
|
126 |
font-size: 28px;
|
127 |
-
color: #
|
128 |
}
|
129 |
|
130 |
/* Container and Columns */
|
@@ -138,8 +138,8 @@ with gr.Blocks() as demo:
|
|
138 |
flex: 1;
|
139 |
margin: 0 10px;
|
140 |
padding: 10px;
|
141 |
-
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.
|
142 |
-
background-color: #
|
143 |
border-radius: 8px;
|
144 |
}
|
145 |
|
@@ -147,18 +147,21 @@ with gr.Blocks() as demo:
|
|
147 |
.gr-Image, .gr-Audio, .gr-Text {
|
148 |
width: 100%;
|
149 |
margin-bottom: 15px;
|
|
|
|
|
|
|
150 |
}
|
151 |
|
152 |
.gr-Image label, .gr-Audio label, .gr-Text label {
|
153 |
font-size: 16px;
|
154 |
font-weight: bold;
|
155 |
-
color: #
|
156 |
}
|
157 |
|
158 |
/* Submit Button */
|
159 |
.gr-Button {
|
160 |
width: 100%;
|
161 |
-
background-color: #
|
162 |
color: white;
|
163 |
padding: 10px;
|
164 |
font-size: 16px;
|
@@ -169,7 +172,7 @@ with gr.Blocks() as demo:
|
|
169 |
}
|
170 |
|
171 |
.gr-Button:hover {
|
172 |
-
background-color: #
|
173 |
}
|
174 |
|
175 |
/* Text Output */
|
@@ -180,6 +183,7 @@ with gr.Blocks() as demo:
|
|
180 |
padding: 10px;
|
181 |
border: 1px solid #ddd;
|
182 |
border-radius: 5px;
|
|
|
183 |
}
|
184 |
|
185 |
/* Responsive Design */
|
@@ -194,9 +198,8 @@ with gr.Blocks() as demo:
|
|
194 |
}
|
195 |
</style>
|
196 |
|
197 |
-
#
|
198 |
-
|
199 |
-
|
200 |
"""
|
201 |
)
|
202 |
|
|
|
103 |
|
104 |
with gr.Blocks() as demo:
|
105 |
|
106 |
+
# Add custom CSS stylesheet within Markdown
|
107 |
gr.Markdown(
|
108 |
"""
|
109 |
<style>
|
110 |
/* General Layout */
|
111 |
body {
|
112 |
font-family: 'Arial', sans-serif;
|
113 |
+
background-color: #f4f6f9; /* Light pastel background */
|
114 |
margin: 0;
|
115 |
padding: 0;
|
116 |
}
|
|
|
118 |
/* Header */
|
119 |
h1, h2, h3 {
|
120 |
text-align: center;
|
121 |
+
color: #3a3a3a;
|
122 |
font-weight: bold;
|
123 |
}
|
124 |
|
125 |
gr-Markdown h1 {
|
126 |
font-size: 28px;
|
127 |
+
color: #a3d5d3; /* Soft pastel teal for the header */
|
128 |
}
|
129 |
|
130 |
/* Container and Columns */
|
|
|
138 |
flex: 1;
|
139 |
margin: 0 10px;
|
140 |
padding: 10px;
|
141 |
+
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
|
142 |
+
background-color: #f8f0fa; /* Pastel pink background for columns */
|
143 |
border-radius: 8px;
|
144 |
}
|
145 |
|
|
|
147 |
.gr-Image, .gr-Audio, .gr-Text {
|
148 |
width: 100%;
|
149 |
margin-bottom: 15px;
|
150 |
+
background-color: #fff5e1; /* Soft pastel yellow for inputs */
|
151 |
+
border: 1px solid #e3e3e3;
|
152 |
+
border-radius: 8px;
|
153 |
}
|
154 |
|
155 |
.gr-Image label, .gr-Audio label, .gr-Text label {
|
156 |
font-size: 16px;
|
157 |
font-weight: bold;
|
158 |
+
color: #8b8b8b;
|
159 |
}
|
160 |
|
161 |
/* Submit Button */
|
162 |
.gr-Button {
|
163 |
width: 100%;
|
164 |
+
background-color: #b2c7e1; /* Pastel blue button */
|
165 |
color: white;
|
166 |
padding: 10px;
|
167 |
font-size: 16px;
|
|
|
172 |
}
|
173 |
|
174 |
.gr-Button:hover {
|
175 |
+
background-color: #9db6d3; /* Darker pastel blue on hover */
|
176 |
}
|
177 |
|
178 |
/* Text Output */
|
|
|
183 |
padding: 10px;
|
184 |
border: 1px solid #ddd;
|
185 |
border-radius: 5px;
|
186 |
+
background-color: #edf5e1; /* Light pastel green for the output text box */
|
187 |
}
|
188 |
|
189 |
/* Responsive Design */
|
|
|
198 |
}
|
199 |
</style>
|
200 |
|
201 |
+
# Engage with MultiModal GPT!
|
202 |
+
A seamless AI experience combining CLIP and Phi-2 models.
|
|
|
203 |
"""
|
204 |
)
|
205 |
|