Spaces:
Build error
Build error
Gabriele Arcangelo Scalici commited on
Commit ·
320476a
1
Parent(s): 9afa84e
style: minor layout changes and add home link
Browse files- .streamlit/config.toml +3 -0
- launch.sh +3 -0
- modules/layout.py +9 -2
.streamlit/config.toml
CHANGED
|
@@ -1,3 +1,6 @@
|
|
| 1 |
[theme]
|
| 2 |
base="light"
|
| 3 |
primaryColor="#0098ff"
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
[theme]
|
| 2 |
base="light"
|
| 3 |
primaryColor="#0098ff"
|
| 4 |
+
|
| 5 |
+
[browser]
|
| 6 |
+
gatherUsageStats = false
|
launch.sh
CHANGED
|
@@ -26,6 +26,9 @@ pip install --upgrade pip
|
|
| 26 |
# Install dependencies
|
| 27 |
pip install -r $DIR/requirements.txt
|
| 28 |
|
|
|
|
|
|
|
|
|
|
| 29 |
# Run program
|
| 30 |
streamlit run $DIR/main.py
|
| 31 |
|
|
|
|
| 26 |
# Install dependencies
|
| 27 |
pip install -r $DIR/requirements.txt
|
| 28 |
|
| 29 |
+
# Clear terminal
|
| 30 |
+
clear
|
| 31 |
+
|
| 32 |
# Run program
|
| 33 |
streamlit run $DIR/main.py
|
| 34 |
|
modules/layout.py
CHANGED
|
@@ -7,7 +7,10 @@ class Layout:
|
|
| 7 |
Displays the header of the app
|
| 8 |
"""
|
| 9 |
st.markdown(
|
| 10 |
-
"
|
|
|
|
|
|
|
|
|
|
| 11 |
)
|
| 12 |
|
| 13 |
def show_api_key_error(self):
|
|
@@ -15,6 +18,10 @@ class Layout:
|
|
| 15 |
Displays an error message if the user has not entered an API key
|
| 16 |
"""
|
| 17 |
st.markdown(
|
| 18 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
unsafe_allow_html=True,
|
| 20 |
)
|
|
|
|
| 7 |
Displays the header of the app
|
| 8 |
"""
|
| 9 |
st.markdown(
|
| 10 |
+
"""
|
| 11 |
+
<h1 style='text-align: center;'>ChatBot-PDF, Talk with your documents ! 💬</h1>
|
| 12 |
+
""",
|
| 13 |
+
unsafe_allow_html=True,
|
| 14 |
)
|
| 15 |
|
| 16 |
def show_api_key_error(self):
|
|
|
|
| 18 |
Displays an error message if the user has not entered an API key
|
| 19 |
"""
|
| 20 |
st.markdown(
|
| 21 |
+
"""
|
| 22 |
+
<div style='text-align: center;'>
|
| 23 |
+
<h4>Enter your <a href="https://platform.openai.com/account/api-keys" target="_blank">OpenAI API key</a> to start chatting 🤓</h4>
|
| 24 |
+
</div>
|
| 25 |
+
""",
|
| 26 |
unsafe_allow_html=True,
|
| 27 |
)
|