naveen07garg commited on
Commit
4fe8f2e
·
verified ·
1 Parent(s): d5eb6d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -13
app.py CHANGED
@@ -728,6 +728,7 @@ css = """
728
  """
729
 
730
  footer_html = """
 
731
  <div id="footer">
732
  <table border=5 align=right>
733
  <td align=left>
@@ -742,22 +743,18 @@ footer_html = """
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()
 
728
  """
729
 
730
  footer_html = """
731
+ <br>
732
  <div id="footer">
733
  <table border=5 align=right>
734
  <td align=left>
 
743
  </table>
744
  </div>
745
  """
 
746
  # =============================
747
  # Step 7: Launch App
748
  # =============================
749
 
750
  #def respond(message, history):
751
+ # return f"BubbleBot says: {message}"
752
+
753
+ gr.ChatInterface(
754
+ fn=chat_fn,
755
+ title="Flyline Chatbot ✈ ️",
756
+ description="Ask Flyline HR "+footer_html,
757
+ theme="soft",
758
+ css=css
759
+ ).launch()
 
 
760