Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,20 +12,11 @@ from PIL import Image
|
|
| 12 |
st.title("Nexus TCM Chatbot")
|
| 13 |
query = st.text_input("Query: ", key="input")
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
# Specify the relative path to the logo within the Hugging Face space
|
| 19 |
-
logo_path = "spaces/mathslearn/chatbot_test_streamlit/logo.jpeg"
|
| 20 |
-
|
| 21 |
-
# Get the URL to the directory containing the logo
|
| 22 |
-
logo_dir_url = get_dir_url(logo_path)
|
| 23 |
-
|
| 24 |
-
# Concatenate the directory URL and logo path to get the full URL
|
| 25 |
-
logo_url = f"{logo_dir_url}/{logo_path}"
|
| 26 |
|
| 27 |
# Desired height for the logo
|
| 28 |
-
logo_height =
|
| 29 |
|
| 30 |
# Display the logo with specified height
|
| 31 |
st.image(logo_url, caption="Nexus TCM Chatbot Logo", use_column_width=True, height=logo_height)
|
|
|
|
| 12 |
st.title("Nexus TCM Chatbot")
|
| 13 |
query = st.text_input("Query: ", key="input")
|
| 14 |
|
| 15 |
+
# URL of the logo image
|
| 16 |
+
logo_url = "https://huggingface.co/spaces/mathslearn/chatbot_test_streamlit/blob/main/logo.jpeg"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# Desired height for the logo
|
| 19 |
+
logo_height = 100
|
| 20 |
|
| 21 |
# Display the logo with specified height
|
| 22 |
st.image(logo_url, caption="Nexus TCM Chatbot Logo", use_column_width=True, height=logo_height)
|