Spaces:
Sleeping
Sleeping
Vlad Bastina commited on
Commit ·
3f69023
1
Parent(s): 6f235b9
style
Browse files- .streamlit/config.toml +2 -0
- __pycache__/gemini_call.cpython-312.pyc +0 -0
- __pycache__/sentiment_analysis.cpython-312.pyc +0 -0
- __pycache__/sentiment_analysis.cpython-313.pyc +0 -0
- __pycache__/translation.cpython-312.pyc +0 -0
- __pycache__/translation.cpython-313.pyc +0 -0
- streamlit_app.py +14 -1
- style.css +72 -0
- zega_logo.svg +15 -0
.streamlit/config.toml
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[theme]
|
| 2 |
+
base="light"
|
__pycache__/gemini_call.cpython-312.pyc
CHANGED
|
Binary files a/__pycache__/gemini_call.cpython-312.pyc and b/__pycache__/gemini_call.cpython-312.pyc differ
|
|
|
__pycache__/sentiment_analysis.cpython-312.pyc
CHANGED
|
Binary files a/__pycache__/sentiment_analysis.cpython-312.pyc and b/__pycache__/sentiment_analysis.cpython-312.pyc differ
|
|
|
__pycache__/sentiment_analysis.cpython-313.pyc
ADDED
|
Binary file (977 Bytes). View file
|
|
|
__pycache__/translation.cpython-312.pyc
CHANGED
|
Binary files a/__pycache__/translation.cpython-312.pyc and b/__pycache__/translation.cpython-312.pyc differ
|
|
|
__pycache__/translation.cpython-313.pyc
ADDED
|
Binary file (3.18 kB). View file
|
|
|
streamlit_app.py
CHANGED
|
@@ -19,7 +19,12 @@ def load_css(file_name):
|
|
| 19 |
st.error(f"CSS file not found: {file_name}. Make sure it's in the same directory as app.py.")
|
| 20 |
except Exception as e:
|
| 21 |
st.error(f"Error loading CSS file {file_name}: {e}")
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
load_css("style.css")
|
| 24 |
|
| 25 |
os.environ['GOOGLE_API_KEY'] = st.secrets['GOOGLE_API_KEY']
|
|
@@ -60,6 +65,14 @@ def main():
|
|
| 60 |
"""Main function that loops and can record audio and dispaly the messages from gemini"""
|
| 61 |
st.title("Streamlit Voice Recorder")
|
| 62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
if "messages" not in st.session_state:
|
| 64 |
st.session_state.messages = []
|
| 65 |
|
|
|
|
| 19 |
st.error(f"CSS file not found: {file_name}. Make sure it's in the same directory as app.py.")
|
| 20 |
except Exception as e:
|
| 21 |
st.error(f"Error loading CSS file {file_name}: {e}")
|
| 22 |
+
|
| 23 |
+
st.markdown("""
|
| 24 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 25 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 26 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Space+Grotesk:wght@300..700&display=swap" rel="stylesheet">
|
| 27 |
+
""", unsafe_allow_html=True)
|
| 28 |
load_css("style.css")
|
| 29 |
|
| 30 |
os.environ['GOOGLE_API_KEY'] = st.secrets['GOOGLE_API_KEY']
|
|
|
|
| 65 |
"""Main function that loops and can record audio and dispaly the messages from gemini"""
|
| 66 |
st.title("Streamlit Voice Recorder")
|
| 67 |
|
| 68 |
+
logo_path = "zega_logo.svg"
|
| 69 |
+
if os.path.exists(logo_path):
|
| 70 |
+
with open(logo_path, "r", encoding="utf-8") as f:
|
| 71 |
+
svg_content = f.read()
|
| 72 |
+
|
| 73 |
+
st.sidebar.markdown(svg_content,unsafe_allow_html=True)
|
| 74 |
+
else:
|
| 75 |
+
st.sidebar.warning("Logo zega_logo.PNG not found.")
|
| 76 |
if "messages" not in st.session_state:
|
| 77 |
st.session_state.messages = []
|
| 78 |
|
style.css
CHANGED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body {
|
| 2 |
+
font-family: 'Inter Tight', Arial, Helvetica, sans-serif !important;
|
| 3 |
+
font-size: 14px !important;
|
| 4 |
+
text-align: left !important;
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
/* Headings */
|
| 8 |
+
h1, h2, h3 {
|
| 9 |
+
font-family: "Space Grotesk", sans-serif !important;
|
| 10 |
+
font-optical-sizing: auto !important;
|
| 11 |
+
font-weight: 500 !important;
|
| 12 |
+
font-style: normal !important;
|
| 13 |
+
}
|
| 14 |
+
h1, h2 {
|
| 15 |
+
letter-spacing: -2px !important;
|
| 16 |
+
}
|
| 17 |
+
h1 {
|
| 18 |
+
font-size: 34px !important;
|
| 19 |
+
}
|
| 20 |
+
h2 {
|
| 21 |
+
font-size: 21px !important;
|
| 22 |
+
}
|
| 23 |
+
h3 {
|
| 24 |
+
font-size: 17px !important;
|
| 25 |
+
}
|
| 26 |
+
h4 {
|
| 27 |
+
font-size: 14px !important;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/* Butoane */
|
| 31 |
+
|
| 32 |
+
button {
|
| 33 |
+
font-weight: 600 !important;
|
| 34 |
+
}
|
| 35 |
+
button:hover {
|
| 36 |
+
color: #FA6C03 !important;
|
| 37 |
+
border-color: #FA6C03 !important;
|
| 38 |
+
}
|
| 39 |
+
button:focus {
|
| 40 |
+
color: #fff !important;
|
| 41 |
+
background-color: #FA6C03 !important;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
/* Buton sidebar */
|
| 45 |
+
[data-testid="stSidebar"] .stButton>button {
|
| 46 |
+
background-color: #4169E1 !important;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
/* Bara loading */
|
| 50 |
+
.st-emotion-cache-1dp5vir {
|
| 51 |
+
background-image: linear-gradient(90deg, rgb(65, 105, 225), rgb(0, 255, 255)) !important;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
/* Bara stanga */
|
| 55 |
+
.st-emotion-cache-vmpjyt {
|
| 56 |
+
background-color: #f5f5f5 !important;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
/* Select */
|
| 60 |
+
.st-ae {
|
| 61 |
+
font-family: inherit !important;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
/* File Select */
|
| 65 |
+
.st-emotion-cache-1gulkj5 {
|
| 66 |
+
background-color: #f5f5f5 !important;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
/* Other fonts */
|
| 70 |
+
p {
|
| 71 |
+
font-family: 'Inter Tight', Arial, Helvetica, sans-serif !important;
|
| 72 |
+
}
|
zega_logo.svg
ADDED
|
|