Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,13 @@ from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
|
|
15 |
os.environ["HUGGINGFACEHUB_API_KEY"] = os.getenv("HF")
|
16 |
os.environ["HF_TOKEN"] = os.getenv("HF")
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
# Split large response into smaller chunks (for translation)
|
19 |
def split_text_into_chunks(text, max_length=450):
|
20 |
lines = text.split('\n')
|
|
|
15 |
os.environ["HUGGINGFACEHUB_API_KEY"] = os.getenv("HF")
|
16 |
os.environ["HF_TOKEN"] = os.getenv("HF")
|
17 |
|
18 |
+
st.set_page_config(
|
19 |
+
page_title="MediAssist - Prescription Analyzer",
|
20 |
+
layout="wide",
|
21 |
+
page_icon="💊"
|
22 |
+
)
|
23 |
+
|
24 |
+
|
25 |
# Split large response into smaller chunks (for translation)
|
26 |
def split_text_into_chunks(text, max_length=450):
|
27 |
lines = text.split('\n')
|