Spaces:
Sleeping
Sleeping
pantadeusz commited on
Commit ·
63fbc67
1
Parent(s): 17543f0
some tweaks
Browse files
app.py
CHANGED
|
@@ -25,9 +25,9 @@ def get_llm_hf_inference(model_id=model_id, max_new_tokens=128, temperature=0.1)
|
|
| 25 |
import streamlit as st
|
| 26 |
|
| 27 |
# Configure the Streamlit app
|
| 28 |
-
st.set_page_config(page_title="Tadeusz ChatBot", page_icon="🤖", layout="wide")
|
| 29 |
-
st.title("
|
| 30 |
-
st.markdown("*This is a simple and hopefully fun chatbot. It uses the meta-llama/Meta-Llama-3.1-8B-Instruct
|
| 31 |
|
| 32 |
|
| 33 |
# Initialize session state for avatars
|
|
@@ -46,7 +46,7 @@ if "system_message" not in st.session_state:
|
|
| 46 |
st.session_state.system_message = "rude AI conversing with a human user"
|
| 47 |
|
| 48 |
if "starter_message" not in st.session_state:
|
| 49 |
-
st.session_state.starter_message = "What?"
|
| 50 |
|
| 51 |
# Sidebar for settings
|
| 52 |
with st.sidebar:
|
|
|
|
| 25 |
import streamlit as st
|
| 26 |
|
| 27 |
# Configure the Streamlit app
|
| 28 |
+
st.set_page_config(page_title="Tadeusz ChatBot For Fun", page_icon="🤖", layout="wide")
|
| 29 |
+
st.title("HAL")
|
| 30 |
+
st.markdown("*This is a simple and hopefully fun chatbot. It uses the meta-llama/Meta-Llama-3.1-8B-Instruct. It is based on https://medium.com/@james.irving.phd/creating-your-personal-chatbot-using-hugging-face-spaces-and-streamlit-596a54b9e3ed*")
|
| 31 |
|
| 32 |
|
| 33 |
# Initialize session state for avatars
|
|
|
|
| 46 |
st.session_state.system_message = "rude AI conversing with a human user"
|
| 47 |
|
| 48 |
if "starter_message" not in st.session_state:
|
| 49 |
+
st.session_state.starter_message = "What do you want?"
|
| 50 |
|
| 51 |
# Sidebar for settings
|
| 52 |
with st.sidebar:
|