naveen07garg commited on
Commit
47ff9a8
·
verified ·
1 Parent(s): 77883d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -2
app.py CHANGED
@@ -628,7 +628,7 @@ def chat_fn(message, history):
628
  if retriever is None:
629
  return "⚠️ Retriever not initialized. Please rebuild or check vector DB."
630
  answer = generate_rag_response(message, retriever)
631
- return format_answer #f"{answer}\n\n🧠 (Context retrieved from {pdf_path})"
632
 
633
 
634
  # =============================
@@ -712,9 +712,35 @@ css = """
712
  #chatbot .bubble {
713
  animation: bubblePop 0.2s ease-out;
714
  }
715
- """
716
 
 
 
 
 
 
 
 
 
 
 
 
 
 
717
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
718
  # =============================
719
  # Step 7: Launch App
720
  # =============================
 
628
  if retriever is None:
629
  return "⚠️ Retriever not initialized. Please rebuild or check vector DB."
630
  answer = generate_rag_response(message, retriever)
631
+ return format_answer(answer) #f"{answer}\n\n🧠 (Context retrieved from {pdf_path})"
632
 
633
 
634
  # =============================
 
712
  #chatbot .bubble {
713
  animation: bubblePop 0.2s ease-out;
714
  }
 
715
 
716
+ #footer {
717
+ position: fixed;
718
+ bottom: 5px;
719
+ left: 0;
720
+ width: 100%;
721
+ text-align: center;
722
+ font-size: 12px;
723
+ color: #777;
724
+ padding: 5px 0;
725
+ background: rgba(255, 255, 255, 0.7);
726
+ }
727
+
728
+ """
729
 
730
+ gr.HTML(
731
+ """
732
+ <div id="footer">
733
+ <table border=5 align=right>
734
+ <td align=left>
735
+ <b>AIML Oct 2024 Batch</b>
736
+ </td>
737
+ <td>
738
+ <font face="Arial" size=2 align=right color=navy blue>Assignment - Capstone Project Interim: Airlines Q&A [ <b> Naveen Garg, Dishant Kalra, Sandeep Maini, Ajeet Prasad, Abhishek Srivastava</b> ]</font>
739
+ </td>
740
+ </table>
741
+ </div>
742
+ """
743
+ )
744
  # =============================
745
  # Step 7: Launch App
746
  # =============================