Abid Ali Awan
commited on
Commit
·
affe608
1
Parent(s):
c0cb986
Update app.py: Modify HTML structure for the Gradio interface by simplifying the layout and changing the launch mode to SSR disabled for improved performance.
Browse files
app.py
CHANGED
@@ -796,11 +796,10 @@ def process_financial_query(message, history):
|
|
796 |
|
797 |
# Create the Gradio interface
|
798 |
with gr.Blocks(theme=gr.themes.Base(), title="Financial Advisory Agent") as demo:
|
799 |
-
gr.HTML("""<
|
800 |
-
<img src="/gradio_api/file=public/images/fin_logo.png" alt="Fin Logo" style="width: 50px; vertical-align: middle;">
|
801 |
<h1 style="text-align: center;">AI Financial Advisory Agent</h1>
|
802 |
-
|
803 |
-
</
|
804 |
""")
|
805 |
|
806 |
chatbot = gr.Chatbot(
|
@@ -860,4 +859,4 @@ with gr.Blocks(theme=gr.themes.Base(), title="Financial Advisory Agent") as demo
|
|
860 |
chatbot.like(like_handler)
|
861 |
|
862 |
if __name__ == "__main__":
|
863 |
-
demo.launch()
|
|
|
796 |
|
797 |
# Create the Gradio interface
|
798 |
with gr.Blocks(theme=gr.themes.Base(), title="Financial Advisory Agent") as demo:
|
799 |
+
gr.HTML("""<center><img src="/gradio_api/file=public/images/fin_logo.png" alt="Fin Logo" style="width: 50px; vertical-align: middle;">
|
|
|
800 |
<h1 style="text-align: center;">AI Financial Advisory Agent</h1>
|
801 |
+
Your AI-powered financial advisor for budgeting, investments, portfolio analysis, and market trends.
|
802 |
+
</center>
|
803 |
""")
|
804 |
|
805 |
chatbot = gr.Chatbot(
|
|
|
859 |
chatbot.like(like_handler)
|
860 |
|
861 |
if __name__ == "__main__":
|
862 |
+
demo.launch(ssr_mode=False)
|