Spaces:
Runtime error
Runtime error
Commit
·
c76cb0e
1
Parent(s):
f0bd95b
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,6 +7,14 @@
|
|
| 7 |
import requests
|
| 8 |
import streamlit as st
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
def call_chatbot_api(query):
|
| 11 |
#url = 'https://binqiangliu-fastapi-in-docker.hf.space/api/chat'
|
| 12 |
url = 'https://binqiangliu-officialusinositechatv1api.hf.space/api/chat'
|
|
|
|
| 7 |
import requests
|
| 8 |
import streamlit as st
|
| 9 |
|
| 10 |
+
st.set_page_config(page_title="USinoIP Website AI Chat Assistant - Open Source Version", layout="wide")
|
| 11 |
+
st.subheader("Welcome to USinoIP Website AI Chat Assistant - Open Source Version.")
|
| 12 |
+
st.write("Important notice: This USinoIP Website AI Chat Assistant is offered ONLY for the purpose of assisting users to better interact with USinoIP webiste contents and by no means for any other use. Any user should never interact with the AI Assistant in any way that is against any related promulgated regulations. The user is the only entity responsible for interactions taken between the user and the AI Chat Assistant.")
|
| 13 |
+
|
| 14 |
+
css_file = "main.css"
|
| 15 |
+
with open(css_file) as f:
|
| 16 |
+
st.markdown("<style>{}</style>".format(f.read()), unsafe_allow_html=True)
|
| 17 |
+
|
| 18 |
def call_chatbot_api(query):
|
| 19 |
#url = 'https://binqiangliu-fastapi-in-docker.hf.space/api/chat'
|
| 20 |
url = 'https://binqiangliu-officialusinositechatv1api.hf.space/api/chat'
|