Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,7 +96,8 @@ with gr.Blocks(title="Smilo😃 - Real-Time Emotion Detection") as demo:
|
|
| 96 |
<h1 style="color: white; margin: 0; margin-bottom: 10px; font-weight: 900; font-size: 3.5em; display: flex; align-items: center; justify-content: center; gap: 10px;">
|
| 97 |
Smilo <span style="font-size: 0.9em;">😃</span>
|
| 98 |
</h1>
|
| 99 |
-
<p style="color: #f0f0f0; font-size: 1.2em; margin: 0; font-weight: 400; letter-spacing: 0.5px;">Real-Time Emotion Detection powered by PyTorch</p>
|
|
|
|
| 100 |
</div>
|
| 101 |
""")
|
| 102 |
|
|
@@ -112,12 +113,7 @@ with gr.Blocks(title="Smilo😃 - Real-Time Emotion Detection") as demo:
|
|
| 112 |
with gr.Column():
|
| 113 |
image_output = gr.Image(label="Annotated Image")
|
| 114 |
emotion_output = gr.Textbox(label="Prediction Result", interactive=False)
|
| 115 |
-
|
| 116 |
-
<div style='text-align: center; color: var(--color-text-secondary); font-size: 0.85em;'>
|
| 117 |
-
Smilo - Real-Time Emotion Detction using PyTorch & OpenCV |
|
| 118 |
-
<a href='https://github.com/TejeshNaiduKona/Smilo' target='_blank'>GitHub</a>
|
| 119 |
-
</div>
|
| 120 |
-
""")
|
| 121 |
# Connect the function to the button
|
| 122 |
submit_btn.click(
|
| 123 |
fn=predict_emotion,
|
|
|
|
| 96 |
<h1 style="color: white; margin: 0; margin-bottom: 10px; font-weight: 900; font-size: 3.5em; display: flex; align-items: center; justify-content: center; gap: 10px;">
|
| 97 |
Smilo <span style="font-size: 0.9em;">😃</span>
|
| 98 |
</h1>
|
| 99 |
+
<p style="color: #f0f0f0; font-size: 1.2em; margin: 0; font-weight: 400; letter-spacing: 0.5px;">Real-Time Emotion Detection powered by PyTorch <a href='https://github.com/TejeshNaiduKona/Smilo' target='_blank'>GitHub</a></p>
|
| 100 |
+
|
| 101 |
</div>
|
| 102 |
""")
|
| 103 |
|
|
|
|
| 113 |
with gr.Column():
|
| 114 |
image_output = gr.Image(label="Annotated Image")
|
| 115 |
emotion_output = gr.Textbox(label="Prediction Result", interactive=False)
|
| 116 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
# Connect the function to the button
|
| 118 |
submit_btn.click(
|
| 119 |
fn=predict_emotion,
|