ktejeshnaidu commited on
Commit
1debbd9
·
verified ·
1 Parent(s): 080049c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -99,13 +99,6 @@ with gr.Blocks(title="Smilo😃 - Real-Time Emotion Detection") as demo:
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
- with gr.markdown(
103
- "<div style='text-align: center; color: var(--color-text-secondary); font-size: 0.85em;'>"
104
- "Smilo - Real-Time Emotion Detction using PyTorch & OpenCV | "
105
- "<a href='https://github.com/TejeshNaiduKona/Smilo' target='_blank'>GitHub</a>"
106
- "</div>",
107
- unsafe_allow_html=True
108
- )
109
 
110
  with gr.Row():
111
  with gr.Column():
@@ -119,7 +112,13 @@ with gr.markdown(
119
  with gr.Column():
120
  image_output = gr.Image(label="Annotated Image")
121
  emotion_output = gr.Textbox(label="Prediction Result", interactive=False)
122
-
 
 
 
 
 
 
123
  # Connect the function to the button
124
  submit_btn.click(
125
  fn=predict_emotion,
 
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
 
103
  with gr.Row():
104
  with gr.Column():
 
112
  with gr.Column():
113
  image_output = gr.Image(label="Annotated Image")
114
  emotion_output = gr.Textbox(label="Prediction Result", interactive=False)
115
+ with gr.HTML(
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
+ unsafe_allow_html=True
121
+ )
122
  # Connect the function to the button
123
  submit_btn.click(
124
  fn=predict_emotion,