zoya23 commited on
Commit
b3d218a
·
verified ·
1 Parent(s): 302df45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,6 +4,9 @@ from langchain.llms import HuggingFaceEndpoint
4
  from langchain.prompts import FewShotChatMessagePromptTemplate, ChatPromptTemplate
5
  from langchain.schema.messages import SystemMessage
6
 
 
 
 
7
  # Load few-shot examples from dialogsum
8
  @st.cache_data
9
  def load_examples(n=3):
@@ -31,7 +34,6 @@ final_prompt = ChatPromptTemplate.from_messages([
31
  ])
32
 
33
  # Streamlit UI setup
34
- st.set_page_config(page_title="DialogSum Few-Shot Summarizer", page_icon="🧠")
35
  st.title("🧠 Few-Shot Dialog Summarizer")
36
  st.markdown("Uses real examples from `dialogsum` to guide the summary output.")
37
 
 
4
  from langchain.prompts import FewShotChatMessagePromptTemplate, ChatPromptTemplate
5
  from langchain.schema.messages import SystemMessage
6
 
7
+ # Set page config at the very top, before anything else
8
+ st.set_page_config(page_title="DialogSum Few-Shot Summarizer", page_icon="🧠")
9
+
10
  # Load few-shot examples from dialogsum
11
  @st.cache_data
12
  def load_examples(n=3):
 
34
  ])
35
 
36
  # Streamlit UI setup
 
37
  st.title("🧠 Few-Shot Dialog Summarizer")
38
  st.markdown("Uses real examples from `dialogsum` to guide the summary output.")
39