Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace username, icon and image path #78

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions example/demo_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def genRANstring(n):

# CREATE THE SIDEBAR
with st.sidebar:
st.image('img/RMIT_POS3.png', use_column_width=True)
st.image('example/img/log.png', use_column_width=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any logo that related to your team?. I mean the logo without SkywardAI also be fine.

st.session_state.temperature = st.slider('Temperature:', min_value=0.0, max_value=1.0, value=0.1, step=0.02)
st.session_state.maxlength = st.slider('Length reply:', min_value=150, max_value=1000,
value=500, step=50)
Expand All @@ -78,14 +78,14 @@ def genRANstring(n):
if "messages" not in st.session_state:
st.session_state.messages = [
{"role": "system", "content": "You are assistant, a helpful assistant. You reply only to the user questions. You always reply in the language of the instructions.",},
{"role": "user", "content": "Hi, I am P000252SE."},
{"role": "user", "content": "Hi, I am P000455CSITCPL."},
{"role": "assistant", "content": "Hi there, I am assistant, how may I help you today?"}
]
# we define the function to clear from the screen the conversation history
def clearHistory():
st.session_state.messages = [
{"role": "system", "content": "You are assistant, a helpful assistant. You reply only to the user questions. You always reply in the language of the instructions.",},
{"role": "user", "content": "Hi, I am P000252SE."},
{"role": "user", "content": "Hi, I am P000455CSITCPL."},
{"role": "assistant", "content": "Hi there, I am assistant, how may I help you today?"}
]
if btnClear:
Expand Down
Binary file added example/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading