Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -717,29 +717,66 @@ div#component-70 th {
|
|
| 717 |
}
|
| 718 |
"""
|
| 719 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 720 |
with gr.Blocks(css=custom_css) as demo:
|
| 721 |
-
|
| 722 |
-
|
| 723 |
-
|
| 724 |
-
|
| 725 |
-
|
|
|
|
|
|
|
| 726 |
</div>
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
|
| 730 |
-
|
| 731 |
-
|
| 732 |
-
|
| 733 |
-
|
| 734 |
-
|
| 735 |
-
|
| 736 |
-
|
| 737 |
-
|
| 738 |
-
|
| 739 |
-
|
| 740 |
-
|
| 741 |
-
|
| 742 |
-
)
|
| 743 |
initial_session = int(uuid.uuid4().int % 1000000)
|
| 744 |
session_state = gr.State(value=initial_session)
|
| 745 |
|
|
@@ -747,11 +784,12 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 747 |
with gr.Column(scale=1, elem_classes="how-to-use"):
|
| 748 |
gr.Markdown("""
|
| 749 |
### How to Use:
|
| 750 |
-
1. **Chat**: Talk to AI for product recommendations, place orders, or file complaints
|
| 751 |
2. **My Complaints**: Track complaint status and view evidence
|
| 752 |
-
|
| 753 |
""")
|
| 754 |
|
|
|
|
|
|
|
| 755 |
with gr.Column(scale=3):
|
| 756 |
with gr.Tabs():
|
| 757 |
with gr.Tab("Chat with Support"):
|
|
|
|
| 717 |
}
|
| 718 |
"""
|
| 719 |
|
| 720 |
+
# with gr.Blocks(css=custom_css) as demo:
|
| 721 |
+
# gr.HTML(
|
| 722 |
+
# f"""
|
| 723 |
+
# <div class='header'>
|
| 724 |
+
# <div class='header-logo'>
|
| 725 |
+
# <img src="{logo_b64}" width="120">
|
| 726 |
+
# </div>
|
| 727 |
+
# <h1>SparkMart</h1>
|
| 728 |
+
# </div>
|
| 729 |
+
|
| 730 |
+
# <div style='text-align: center;'>
|
| 731 |
+
# <p style='margin-top:20px; font-size:1.30em; opacity:0.92; color: white;'>
|
| 732 |
+
# A conversational AI solution for e-commerce that automates product inquiries,
|
| 733 |
+
# order management, and complaint resolution while maintaining customer context,
|
| 734 |
+
# history, and secure evidence-based complaint handling.
|
| 735 |
+
# </p>
|
| 736 |
+
|
| 737 |
+
# <p style='margin-top:5px; font-size:1.05em; opacity:0.85; color: white;'>
|
| 738 |
+
# Powered by SparkBrains
|
| 739 |
+
# </p>
|
| 740 |
+
# </div>
|
| 741 |
+
# """
|
| 742 |
+
# )
|
| 743 |
+
# initial_session = int(uuid.uuid4().int % 1000000)
|
| 744 |
+
# session_state = gr.State(value=initial_session)
|
| 745 |
+
|
| 746 |
+
# with gr.Row():
|
| 747 |
+
# with gr.Column(scale=1, elem_classes="how-to-use"):
|
| 748 |
+
# gr.Markdown("""
|
| 749 |
+
# ### How to Use:
|
| 750 |
+
# 1. **Chat**: Talk to AI for product recommendations, place orders, or file complaints
|
| 751 |
+
# 2. **My Complaints**: Track complaint status and view evidence
|
| 752 |
+
|
| 753 |
+
# """)
|
| 754 |
+
|
| 755 |
with gr.Blocks(css=custom_css) as demo:
|
| 756 |
+
gr.HTML(
|
| 757 |
+
f"""
|
| 758 |
+
<div class='header'>
|
| 759 |
+
<div class='header-logo'>
|
| 760 |
+
<img src='{logo_b64}' width="120">
|
| 761 |
+
</div>
|
| 762 |
+
<h1>SparkMart</h1>
|
| 763 |
</div>
|
| 764 |
+
|
| 765 |
+
<div style='text-align: center;'>
|
| 766 |
+
<p style='margin-top:20px; font-size:1.30em; opacity:0.92; color: white;'>
|
| 767 |
+
A conversational AI solution for e-commerce that automates product inquiries,
|
| 768 |
+
order management, and complaint resolution while maintaining customer context,
|
| 769 |
+
history, and secure evidence-based complaint handling.
|
| 770 |
+
</p>
|
| 771 |
+
|
| 772 |
+
<p style='margin-top:5px; font-size:1.05em; opacity:0.85; color: white;'>
|
| 773 |
+
Powered by SparkBrains
|
| 774 |
+
</p>
|
| 775 |
+
</div>
|
| 776 |
+
"""
|
| 777 |
+
)
|
| 778 |
+
|
| 779 |
+
# MUST BE ALIGNED WITH gr.HTML (same indentation)
|
| 780 |
initial_session = int(uuid.uuid4().int % 1000000)
|
| 781 |
session_state = gr.State(value=initial_session)
|
| 782 |
|
|
|
|
| 784 |
with gr.Column(scale=1, elem_classes="how-to-use"):
|
| 785 |
gr.Markdown("""
|
| 786 |
### How to Use:
|
| 787 |
+
1. **Chat**: Talk to AI for product recommendations, place orders, or file complaints
|
| 788 |
2. **My Complaints**: Track complaint status and view evidence
|
|
|
|
| 789 |
""")
|
| 790 |
|
| 791 |
+
|
| 792 |
+
|
| 793 |
with gr.Column(scale=3):
|
| 794 |
with gr.Tabs():
|
| 795 |
with gr.Tab("Chat with Support"):
|