Spaces:
Sleeping
Sleeping
Ani07-05
commited on
Commit
·
ebfb19f
1
Parent(s):
c1eba4b
Fix set_page_config location
Browse files
app.py
CHANGED
@@ -3,6 +3,9 @@ import os
|
|
3 |
from transformers import pipeline
|
4 |
import torch # PyTorch is commonly used by transformers
|
5 |
|
|
|
|
|
|
|
6 |
# --- Configuration ---
|
7 |
MODEL_NAME = "AdaptLLM/finance-LLM"
|
8 |
# Attempt to get token from secrets, handle case where it might not be set yet
|
@@ -44,7 +47,6 @@ def load_text_generation_pipeline():
|
|
44 |
generator = load_text_generation_pipeline()
|
45 |
|
46 |
# --- Streamlit App UI ---
|
47 |
-
st.set_page_config(layout="wide") # Use wider layout
|
48 |
st.title("💰 FinBuddy Assistant")
|
49 |
st.caption("Your AI-powered financial planning assistant (Text Chat - v1)")
|
50 |
|
|
|
3 |
from transformers import pipeline
|
4 |
import torch # PyTorch is commonly used by transformers
|
5 |
|
6 |
+
# --- Set Page Config FIRST ---
|
7 |
+
st.set_page_config(layout="wide") # Use wider layout
|
8 |
+
|
9 |
# --- Configuration ---
|
10 |
MODEL_NAME = "AdaptLLM/finance-LLM"
|
11 |
# Attempt to get token from secrets, handle case where it might not be set yet
|
|
|
47 |
generator = load_text_generation_pipeline()
|
48 |
|
49 |
# --- Streamlit App UI ---
|
|
|
50 |
st.title("💰 FinBuddy Assistant")
|
51 |
st.caption("Your AI-powered financial planning assistant (Text Chat - v1)")
|
52 |
|