Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +11 -0
src/streamlit_app.py
CHANGED
|
@@ -2,6 +2,17 @@ import streamlit as st
|
|
| 2 |
import torch
|
| 3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
| 4 |
from langdetect import detect
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
# ==============================
|
| 7 |
# PAGE CONFIG
|
|
|
|
| 2 |
import torch
|
| 3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
| 4 |
from langdetect import detect
|
| 5 |
+
# ==============================
|
| 6 |
+
# 🔐 HIDE STREAMLIT MENU (SOLUTION 2)
|
| 7 |
+
# ==============================
|
| 8 |
+
st.markdown("""
|
| 9 |
+
<style>
|
| 10 |
+
#MainMenu {visibility: hidden;}
|
| 11 |
+
header {visibility: hidden;}
|
| 12 |
+
footer {visibility: hidden;}
|
| 13 |
+
.stDeployButton {display:none;}
|
| 14 |
+
</style>
|
| 15 |
+
""", unsafe_allow_html=True)
|
| 16 |
|
| 17 |
# ==============================
|
| 18 |
# PAGE CONFIG
|