import base64 import streamlit as st def get_base64(file_path): with open(file_path, "rb") as file: base64_bytes = base64.b64encode(file.read()) base64_string = base64_bytes.decode("utf-8") return base64_string def set_background(png_file): bin_str = get_base64(png_file) page_bg_img = ( """ """ % bin_str ) st.markdown(page_bg_img, unsafe_allow_html=True) set_background("space_background.jpeg") # About section about = """
This is a multipage application created using the Streamlit library and hosted on HuggingFace Spaces. Our application focuses on solving various natural language processing (NLP) tasks using modern machine learning models.
You can input your review about a clinic here, and our application will classify it using three different models:
Ask about the mysteries of the universe