Spaces:
Runtime error
Runtime error
File size: 1,227 Bytes
bc6b3d5 366fcb3 bc6b3d5 366fcb3 bc6b3d5 366fcb3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
import streamlit as st
import streamlit.components.v1 as components
# Title text
title_text = "<h1 style='color: #3A225D;'>Welcome to IPL Buddy...</h1>"
st.markdown(title_text, unsafe_allow_html=True)
# Caution text
caution_text = """
<h5 style="color: #e10000;">
N.B: The production server and the backend database are running on free tiers. So, it may take some time or a few multiple tries to get reply. Sorry for the inconvenience..π
</h5>
"""
st.markdown(caution_text, unsafe_allow_html=True)
# Chatbot integration
dialogflow_bot = """
<script src="https://www.gstatic.com/dialogflow-console/fast/messenger/bootstrap.js?v=1">
</script>
<style>
df-messenger {
--df-messenger-bot-message: #878fac;
--df-messenger-button-titlebar-color: #3A225D;
--df-messenger-chat-background-color: #fafafa;
--df-messenger-font-color: white;
--df-messenger-send-icon: #878fac;
--df-messenger-user-message: #479b3d;
}
</style>
<df-messenger
intent="WELCOME"
chat-title="IPL Buddy"
agent-id="cc8dfc8c-36c0-420e-9c7b-aeb2ba566a1c"
language-code="en"
></df-messenger>
"""
components.html(dialogflow_bot, height=680)
|