Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -518,6 +518,8 @@ with tab2:
|
|
518 |
# Text input
|
519 |
user_input = st.text_area("Enter your text", " Hi Mohammed, it is nice to meet you. Let's discuss how to be better friends and tackle the world's issues such as global warming and climate change together. There are already so many technology solutions in this grand city that can be applied to the world. I am glad to be working on this problem with you.")
|
520 |
|
|
|
|
|
521 |
# Language selection - for demonstration purposes only
|
522 |
# In a real translation scenario, you'd use actual language codes and a translation model
|
523 |
|
@@ -572,7 +574,6 @@ with tab3:
|
|
572 |
# Divide the page into three columns
|
573 |
col1, col2 = st.columns(2)
|
574 |
|
575 |
-
with col1:
|
576 |
|
577 |
with col1:
|
578 |
|
@@ -608,7 +609,7 @@ with tab3:
|
|
608 |
graph_store.add_triple(building_name, "has_sensor", sensor_id)
|
609 |
|
610 |
# Configuration for the graph visualization
|
611 |
-
agraph_config = Config(height=
|
612 |
|
613 |
# Display the graph
|
614 |
agraph(nodes=graph_store.getNodes(), edges=graph_store.getEdges(), config=agraph_config)
|
|
|
518 |
# Text input
|
519 |
user_input = st.text_area("Enter your text", " Hi Mohammed, it is nice to meet you. Let's discuss how to be better friends and tackle the world's issues such as global warming and climate change together. There are already so many technology solutions in this grand city that can be applied to the world. I am glad to be working on this problem with you.")
|
520 |
|
521 |
+
"""مرحباً Mohammed، سررت بلقائك. دعونا نتحدث عن كيفية أن نكون أصدقاء أفضل ونقوم بمعالجة قضايا العالم مثل الاحتباس الحراري وتغير المناخ معاً. هناك العديد من الحلول التكنولوجية في هذه المدينة الكبيرة التي يمكن تطبيقها على العالم. أنا سعيد للعمل على هذه المشكلة معك.
|
522 |
+
"""
|
523 |
# Language selection - for demonstration purposes only
|
524 |
# In a real translation scenario, you'd use actual language codes and a translation model
|
525 |
|
|
|
574 |
# Divide the page into three columns
|
575 |
col1, col2 = st.columns(2)
|
576 |
|
|
|
577 |
|
578 |
with col1:
|
579 |
|
|
|
609 |
graph_store.add_triple(building_name, "has_sensor", sensor_id)
|
610 |
|
611 |
# Configuration for the graph visualization
|
612 |
+
agraph_config = Config(height=400, width=400, nodeHighlightBehavior=True, highlightColor="#F7A7A6", directed=True, collapsible=True)
|
613 |
|
614 |
# Display the graph
|
615 |
agraph(nodes=graph_store.getNodes(), edges=graph_store.getEdges(), config=agraph_config)
|