-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.py
99 lines (87 loc) · 2.2 KB
/
Home.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
'''
Author: Georgio Feghali
Date: July 11 2023
'''
import streamlit as st
from streamlit_card import card
from streamlit_extras.switch_page_button import switch_page
from PIL import Image
favicon = Image.open("admin/branding/logos/favicon-32x32.png")
st.set_page_config(
page_title="solvr.ai",
page_icon=favicon,
layout="wide",
initial_sidebar_state="collapsed"
)
st.markdown("<h1 style='font-size:60px'><font color='#FF4B4B'>so\\vr.ai</font></h1>", unsafe_allow_html=True)
col1, col2, col3 = st.columns(3)
with col1:
pdf_summarizer = card(
title="🤖",
text="Chat Assistant",
key=1,
styles={
"card": {
"width": "200px",
"height": "200px",
"border-radius": "10px",
"box-shadow": "0 0 10px rgba(0,0,0,0.5)",
"background-color": "#3e3e42"
}
},
on_click=lambda: switch_page("Chat Assistant")
)
pdf_summarizer = card(
title="🖼️",
text="Image Generator",
key=4,
styles={
"card": {
"width": "200px",
"height": "200px",
"border-radius": "10px",
"box-shadow": "0 0 10px rgba(0,0,0,0.5)",
"background-color": "#3e3e42",
"border-color": "#FF4B4B",
"border-width": "20px"
}
},
on_click=lambda: switch_page("Image Generation")
)
with col2:
pdf_summarizer = card(
title="📄",
text="PDF Summarizer",
key=2,
styles={
"card": {
"width": "200px",
"height": "200px",
"border-radius": "10px",
"box-shadow": "0 0 10px rgba(0,0,0,0.5)",
"background-color": "#3e3e42",
"border-color": "#FF4B4B",
"border-width": "20px"
}
},
on_click=lambda: switch_page("Pdf Summarizer")
)
with col3:
pdf_summarizer = card(
title="❓",
text="PDF Q&A",
key=3,
styles={
"card": {
"width": "200px",
"height": "200px",
"border-radius": "10px",
"box-shadow": "0 0 10px rgba(0,0,0,0.5)",
"background-color": "#3e3e42",
"border-color": "#FF4B4B",
"border-width": "20px"
}
},
on_click=lambda: switch_page("PDF Q&A")
)
# if pdf_summarizer: