Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,32 +5,13 @@ import streamlit as st
|
|
| 5 |
openai.api_key = st.secrets['OpenAI_API_Key']
|
| 6 |
|
| 7 |
def main():
|
| 8 |
-
# Inject custom CSS
|
| 9 |
-
st.markdown("""
|
| 10 |
-
<style>
|
| 11 |
-
.reportview-container {
|
| 12 |
-
background: #f4f4f4; # Change the background color
|
| 13 |
-
}
|
| 14 |
-
.sidebar .sidebar-content {
|
| 15 |
-
background: #ffffff; # Change the sidebar background color
|
| 16 |
-
}
|
| 17 |
-
h1 {
|
| 18 |
-
color: #ff6347; # Change the color of the title
|
| 19 |
-
}
|
| 20 |
-
</style>
|
| 21 |
-
""", unsafe_allow_html=True)
|
| 22 |
-
|
| 23 |
# Use markdown for the title with a custom color
|
| 24 |
-
st.sidebar.markdown("<h1 style='color: #
|
| 25 |
-
|
| 26 |
-
# Creating a sidebar for user inputs
|
| 27 |
-
#st.sidebar.title("Chat w/MidikanGPT-4")
|
| 28 |
|
| 29 |
# Creating a text input field for user question context
|
| 30 |
-
context = st.sidebar.
|
| 31 |
|
| 32 |
# Creating a text input field for user questions
|
| 33 |
-
#question = st.sidebar.text_input("Type your question/command:")
|
| 34 |
question = st.sidebar.text_area("Question/command:")
|
| 35 |
|
| 36 |
|
|
|
|
| 5 |
openai.api_key = st.secrets['OpenAI_API_Key']
|
| 6 |
|
| 7 |
def main():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
# Use markdown for the title with a custom color
|
| 9 |
+
st.sidebar.markdown("<h1 style='color: #fffffe;'>Chat w/MidikanGPT-4</h1>", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# Creating a text input field for user question context
|
| 12 |
+
context = st.sidebar.text_area("Context (if any):")
|
| 13 |
|
| 14 |
# Creating a text input field for user questions
|
|
|
|
| 15 |
question = st.sidebar.text_area("Question/command:")
|
| 16 |
|
| 17 |
|