Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -144,6 +144,7 @@ def classify_image(image):
|
|
| 144 |
return "You have good posture! Keep it up!" if predicted.item() == 0 else "I suggest sitting straighter or getting more into frame. It will help for your future interviews."
|
| 145 |
# Full UI
|
| 146 |
with gr.Blocks(css="""
|
|
|
|
| 147 |
body { background-color: #161b24; font-family: 'Nato', sans-serif !important; }
|
| 148 |
h1 { text-align: center; color: #2c3e50; }
|
| 149 |
img { display: block; margin: auto; width: 100px; border-radius: 20px; }
|
|
@@ -156,6 +157,7 @@ with gr.Blocks(css="""
|
|
| 156 |
color: #fafdff;
|
| 157 |
transition: all 0.2s ease;
|
| 158 |
}
|
|
|
|
| 159 |
button:hover {
|
| 160 |
background-color: #49888f;
|
| 161 |
border-color: #7cf8ff;
|
|
@@ -188,6 +190,10 @@ with gr.Blocks(css="""
|
|
| 188 |
.custom-tabs button[role="tab"]:hover {
|
| 189 |
background-color: #ecece8 !important;
|
| 190 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
|
| 192 |
|
| 193 |
""") as demo:
|
|
@@ -251,7 +257,8 @@ with gr.Blocks(css="""
|
|
| 251 |
with gr.Row():
|
| 252 |
with gr.Column(elem_classes=["custom-tabs"]):
|
| 253 |
with gr.Tabs():
|
| 254 |
-
|
|
|
|
| 255 |
chatbot_text = gr.Chatbot(label="Interview Chat (Text Mode)", type="messages")
|
| 256 |
msg = gr.Textbox(label="Type 'start' to begin")
|
| 257 |
send_btn = gr.Button("Send")
|
|
|
|
| 144 |
return "You have good posture! Keep it up!" if predicted.item() == 0 else "I suggest sitting straighter or getting more into frame. It will help for your future interviews."
|
| 145 |
# Full UI
|
| 146 |
with gr.Blocks(css="""
|
| 147 |
+
|
| 148 |
body { background-color: #161b24; font-family: 'Nato', sans-serif !important; }
|
| 149 |
h1 { text-align: center; color: #2c3e50; }
|
| 150 |
img { display: block; margin: auto; width: 100px; border-radius: 20px; }
|
|
|
|
| 157 |
color: #fafdff;
|
| 158 |
transition: all 0.2s ease;
|
| 159 |
}
|
| 160 |
+
|
| 161 |
button:hover {
|
| 162 |
background-color: #49888f;
|
| 163 |
border-color: #7cf8ff;
|
|
|
|
| 190 |
.custom-tabs button[role="tab"]:hover {
|
| 191 |
background-color: #ecece8 !important;
|
| 192 |
}
|
| 193 |
+
:root {
|
| 194 |
+
--trim-region-color: rgba(255, 153, 0, 0.5); /* Nice orange for example */
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
|
| 198 |
|
| 199 |
""") as demo:
|
|
|
|
| 257 |
with gr.Row():
|
| 258 |
with gr.Column(elem_classes=["custom-tabs"]):
|
| 259 |
with gr.Tabs():
|
| 260 |
+
|
| 261 |
+
with gr.Tab('<img src="https://cdn-uploads.huggingface.co/production/uploads/6841b10b397a67a7c7a39b89/pVS-KWvRlW96VKa34EZeZ.png" style="width:24px;height:24px;"> Text Mode'):
|
| 262 |
chatbot_text = gr.Chatbot(label="Interview Chat (Text Mode)", type="messages")
|
| 263 |
msg = gr.Textbox(label="Type 'start' to begin")
|
| 264 |
send_btn = gr.Button("Send")
|