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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -23
app.py CHANGED
@@ -727,32 +727,37 @@ css = """
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
  # =============================
747
 
748
  #def respond(message, history):
749
- # return f"BubbleBot says: {message}"
750
-
751
- gr.ChatInterface(
752
- fn=chat_fn,
753
- title="Flyline Chatbot ✈ ️",
754
- description="Ask Flyline HR",
755
- theme="soft",
756
- css=css
757
- ).launch()
 
 
758
 
 
 
727
 
728
  """
729
 
730
+ footer_html = """
731
+ <div id="footer">
732
+ <table border=5 align=right>
733
+ <td align=left>
734
+ <b>AIML Oct 2024 Batch</b>
735
+ </td>
736
+ <td>
737
+ <font face="Arial" size=2 align=right color=navy blue>
738
+ Assignment - Capstone Project Interim: Airlines Q&A
739
+ [ <b> Naveen Garg, Dishant Kalra, Sandeep Maini, Ajeet Prasad, Abhishek Srivastava </b> ]
740
+ </font>
741
+ </td>
742
+ </table>
743
+ </div>
744
+ """
745
+
746
  # =============================
747
  # Step 7: Launch App
748
  # =============================
749
 
750
  #def respond(message, history):
751
+ # return f"BubbleBot says: {message}" # just for sample test
752
+
753
+ with gr.Blocks(css=css) as demo:
754
+ gr.ChatInterface(
755
+ fn=chat_fn,
756
+ title="Flyline Chatbot ✈ ️",
757
+ description="Ask Flyline HR",
758
+ theme="soft",
759
+ css=css
760
+ )
761
+ gr.HTML(footer_html) # to show footer
762
 
763
+ demo.launch()