stevafernandes commited on
Commit
ace8959
·
verified ·
1 Parent(s): f8b1d7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -69,7 +69,7 @@ def user_input(user_question, api_key):
69
  st.write("Reply: ", response["output_text"])
70
 
71
  def main():
72
- st.set_page_config(page_title="Chat PDF", page_icon="")
73
  st.header("Antimicrobial Pharmacology Chatbot (RX24)")
74
  st.markdown("---")
75
 
@@ -101,9 +101,9 @@ def main():
101
 
102
  # STEP 2: Auto-process PDF file
103
  if not st.session_state["pdf_processed"]:
104
- st.subheader("Processing Antimicrobial Pharmacology Text...")
105
 
106
- with st.spinner("Processing Antimicrobial Pharmacology Text... This may take a moment."):
107
  try:
108
  raw_text = get_pdf_text_from_file(PDF_FILE_PATH)
109
  if not raw_text.strip():
@@ -128,7 +128,7 @@ def main():
128
  st.subheader(" Ask questions about Antimicrobial Pharmacology Text")
129
 
130
  # Show loaded file
131
- st.info(f"Loaded PDF: slide.pdf")
132
 
133
  # Add a reprocess button
134
  col1, col2 = st.columns([3, 1])
@@ -139,7 +139,7 @@ def main():
139
 
140
  # Question input
141
  user_question = st.text_input(
142
- "Ask a question about your uploaded PDFs",
143
  placeholder="e.g., What are the main topics discussed in the document?",
144
  help="The AI will only answer based on the content of your uploaded PDFs"
145
  )
 
69
  st.write("Reply: ", response["output_text"])
70
 
71
  def main():
72
+ st.set_page_config(page_title="Antimicrobial Pharmacology Chatbot", page_icon="")
73
  st.header("Antimicrobial Pharmacology Chatbot (RX24)")
74
  st.markdown("---")
75
 
 
101
 
102
  # STEP 2: Auto-process PDF file
103
  if not st.session_state["pdf_processed"]:
104
+ st.subheader("Processing Antimicrobial Pharmacology Course")
105
 
106
+ with st.spinner("Processing Antimicrobial Pharmacology Course... This may take a moment."):
107
  try:
108
  raw_text = get_pdf_text_from_file(PDF_FILE_PATH)
109
  if not raw_text.strip():
 
128
  st.subheader(" Ask questions about Antimicrobial Pharmacology Text")
129
 
130
  # Show loaded file
131
+ st.info(f"Loaded Antimicrobial Pharmacology Course")
132
 
133
  # Add a reprocess button
134
  col1, col2 = st.columns([3, 1])
 
139
 
140
  # Question input
141
  user_question = st.text_input(
142
+ "Ask a question about your Antimicrobial Pharmacology Course",
143
  placeholder="e.g., What are the main topics discussed in the document?",
144
  help="The AI will only answer based on the content of your uploaded PDFs"
145
  )