J114
1
- Are you running your app locally or is it deployed?
Locally, in a VM without internet access.
- If your app is deployed:
Na
- Share the link to your app’s public GitHub repository (including a requirements file).
Na
- Share the full text of the error message (not a screenshot).
There is no error message
- Share the Streamlit and Python versions.
- Python 3.9.2
- Streamlit, version 1.37.1
My issue is that I am trying to add an emoji like this:
import streamlit as st
st.write(f":clock3: {time_since_last_prediction}")
However, I get no emoji but this:

I believe it is due to the fact that I have no access to the internet, but is there a workaround?
Goyo
2
Try this instead:
st.write(f"🕒 {time_since_last_prediction}")
J114
3
When I copy paste to VSC I get a square already in the py file. When I paste here, however, it’s Ok.
Goyo
4
That is weird. I don’t have VSC but I can paste it in any other editor I tried (Windows Notepad, Gnome Text Editor, Geany and Jupyter).
Also your original code using ":clock3:" works for me on iron without Internet access, so Internet access doesn’t seem to be the issue.
You can always decode the raw bytes:
time_since_last_prediction = "4:01:30.288483"
clock3 = b'\xf0\x9f\x95\x92'.decode()
st.write(f"{clock3} {time_since_last_prediction}")
system
Closed
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.