samuelrince commited on
Commit
1c2951f
·
1 Parent(s): 277e7b2

fix: emoji running/walking

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -190,9 +190,9 @@ with gr.Blocks(css=custom_css) as demo:
190
  with gr.Row():
191
  physical_activity, distance = format_energy_eq_physical_activity(impacts.energy)
192
  if physical_activity == PhysicalActivity.WALKING:
193
- physical_activity = "🚶‍♂️‍➡️ " + physical_activity.capitalize()
194
  if physical_activity == PhysicalActivity.RUNNING:
195
- physical_activity = "🏃‍♂️‍➡️ " + physical_activity.capitalize()
196
  with gr.Column(scale=1, min_width=300):
197
  gr.Markdown(f"""
198
  <h2 align="center">{physical_activity} $$ \Large {distance.magnitude:.3g}\ {distance.units} $$ </h2>
 
190
  with gr.Row():
191
  physical_activity, distance = format_energy_eq_physical_activity(impacts.energy)
192
  if physical_activity == PhysicalActivity.WALKING:
193
+ physical_activity = "🚶 " + physical_activity.capitalize()
194
  if physical_activity == PhysicalActivity.RUNNING:
195
+ physical_activity = "🏃 " + physical_activity.capitalize()
196
  with gr.Column(scale=1, min_width=300):
197
  gr.Markdown(f"""
198
  <h2 align="center">{physical_activity} $$ \Large {distance.magnitude:.3g}\ {distance.units} $$ </h2>