Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -7,17 +7,7 @@ import urllib.request
|
|
7 |
import pandas as pd
|
8 |
|
9 |
|
10 |
-
|
11 |
-
st.components.v1.html("""
|
12 |
-
<script src="https://cm36cv1ly1jf0za4zge3j22h8.agent.pa.smyth.ai/static/embodiment/chatBot/chatbot-v2.js"></script>
|
13 |
-
<script>
|
14 |
-
ChatBot.init({
|
15 |
-
domain: 'cm36cv1ly1jf0za4zge3j22h8.agent.pa.smyth.ai',
|
16 |
-
introMessage: 'Hello, how can I assist you today?',
|
17 |
-
// additional settings, such as colors
|
18 |
-
});
|
19 |
-
</script>
|
20 |
-
""", height=200) # Set height to 200 for visibility
|
21 |
|
22 |
|
23 |
# Function to query Google's Knowledge Graph API
|
@@ -76,7 +66,17 @@ st.sidebar.markdown("""
|
|
76 |
4. **View Results**: See the identified entities and their details.
|
77 |
5. **Export Entities**: Export the entities as JSON or CSV.
|
78 |
""")
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
|
82 |
# Header and intro
|
|
|
7 |
import pandas as pd
|
8 |
|
9 |
|
10 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
|
13 |
# Function to query Google's Knowledge Graph API
|
|
|
66 |
4. **View Results**: See the identified entities and their details.
|
67 |
5. **Export Entities**: Export the entities as JSON or CSV.
|
68 |
""")
|
69 |
+
# Embed JavaScript chatbot code using Streamlit components with a visible height
|
70 |
+
st.components.v1.html("""
|
71 |
+
<script src="https://cm36cv1ly1jf0za4zge3j22h8.agent.pa.smyth.ai/static/embodiment/chatBot/chatbot-v2.js"></script>
|
72 |
+
<script>
|
73 |
+
ChatBot.init({
|
74 |
+
domain: 'cm36cv1ly1jf0za4zge3j22h8.agent.pa.smyth.ai',
|
75 |
+
introMessage: 'Hello, how can I assist you today?',
|
76 |
+
// additional settings, such as colors
|
77 |
+
});
|
78 |
+
</script>
|
79 |
+
""", height=200) # Set height to 200 for visibility
|
80 |
|
81 |
|
82 |
# Header and intro
|