Update app.py
Browse files
app.py
CHANGED
|
@@ -14,24 +14,6 @@ client = chromadb.PersistentClient(path=path)
|
|
| 14 |
import streamlit as st
|
| 15 |
from PIL import Image as PILImage
|
| 16 |
|
| 17 |
-
def set_title_style():
|
| 18 |
-
css = """
|
| 19 |
-
<style>
|
| 20 |
-
.title {
|
| 21 |
-
font-family: Arial, sans-serif;
|
| 22 |
-
font-size: 4rem; /* Increased font size */
|
| 23 |
-
font-weight: 900; /* Extra bold for a classic, strong look */
|
| 24 |
-
background: linear-gradient(to right, gold, black);
|
| 25 |
-
-webkit-background-clip: text;
|
| 26 |
-
-webkit-text-fill-color: transparent;
|
| 27 |
-
text-align: center;
|
| 28 |
-
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Subtle shadow for a classic effect */
|
| 29 |
-
margin-top: 20px; /* Add spacing above the title */
|
| 30 |
-
}
|
| 31 |
-
</style>
|
| 32 |
-
"""
|
| 33 |
-
st.markdown(css, unsafe_allow_html=True)
|
| 34 |
-
|
| 35 |
def add_background_image(image_path):
|
| 36 |
with open(image_path, "rb") as image_file:
|
| 37 |
base64_image = base64.b64encode(image_file.read()).decode()
|
|
@@ -221,8 +203,6 @@ def format_prompt_inputs(image_collection, text_collection, video_collection, us
|
|
| 221 |
import time # To simulate delays during processing
|
| 222 |
|
| 223 |
def page_1():
|
| 224 |
-
st.markdown('<div class="title">ADMIN</div>', unsafe_allow_html=True)
|
| 225 |
-
st.header("Welcome")
|
| 226 |
#st.set_page_config(layout='wide', page_title="Virtual Tutor")
|
| 227 |
st.markdown("""
|
| 228 |
<svg width="600" height="100">
|
|
|
|
| 14 |
import streamlit as st
|
| 15 |
from PIL import Image as PILImage
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
def add_background_image(image_path):
|
| 18 |
with open(image_path, "rb") as image_file:
|
| 19 |
base64_image = base64.b64encode(image_file.read()).decode()
|
|
|
|
| 203 |
import time # To simulate delays during processing
|
| 204 |
|
| 205 |
def page_1():
|
|
|
|
|
|
|
| 206 |
#st.set_page_config(layout='wide', page_title="Virtual Tutor")
|
| 207 |
st.markdown("""
|
| 208 |
<svg width="600" height="100">
|