Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from huggingface_hub import InferenceApi, login
|
|
| 5 |
# Streamlit app configuration
|
| 6 |
st.set_page_config(page_title="Medical Chatbot")
|
| 7 |
st.title("Medical Chatbot")
|
| 8 |
-
|
| 9 |
# Get the Hugging Face token from environment variables
|
| 10 |
hf_token = os.getenv("HF_TOKEN")
|
| 11 |
if hf_token is None:
|
|
@@ -49,7 +49,7 @@ st.sidebar.button('Reset Chat', on_click=reset_conversation)
|
|
| 49 |
# Initialize conversation and chat history
|
| 50 |
if 'messages' not in st.session_state:
|
| 51 |
st.session_state.messages = [
|
| 52 |
-
{"role": "system", "content": "You are a
|
| 53 |
]
|
| 54 |
|
| 55 |
# Display chat history
|
|
|
|
| 5 |
# Streamlit app configuration
|
| 6 |
st.set_page_config(page_title="Medical Chatbot")
|
| 7 |
st.title("Medical Chatbot")
|
| 8 |
+
st.subheader("I'm Your Medical Assistance", divider=True)
|
| 9 |
# Get the Hugging Face token from environment variables
|
| 10 |
hf_token = os.getenv("HF_TOKEN")
|
| 11 |
if hf_token is None:
|
|
|
|
| 49 |
# Initialize conversation and chat history
|
| 50 |
if 'messages' not in st.session_state:
|
| 51 |
st.session_state.messages = [
|
| 52 |
+
{"role": "system", "content": "You are a knowledgeable and empathetic medical assistant providing accurate and compassionate health advice based on user input."}
|
| 53 |
]
|
| 54 |
|
| 55 |
# Display chat history
|