eaglelandsonce commited on
Commit
3c12ec8
·
verified ·
1 Parent(s): 29dc5a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +73 -62
app.py CHANGED
@@ -208,81 +208,92 @@ def draw_grid(data, highlight_coords=None):
208
  # Tabs +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
209
 
210
  # Create the main app with three tabs
211
- tab1, tab2, tab3 = st.tabs(["Interpretive Number","Green Village", "Control Room"])
212
 
213
 
214
  with tab1:
215
 
216
- st.header("RAGE - A day in the Life of Aya City")
217
-
218
- # Divide the page into three columns
219
- col1, col2 = st.columns(2)
220
 
 
 
 
 
221
  with col1:
222
- st.header("Human Interpretive Number (HIN)")
223
- st.write("")
224
- "How do LLMs interpret us and over “a period” of time what is the result of our interaction with them?"
225
- st.write("")
226
-
227
- image_comparison(
228
- img1="./data/robot.jpg",
229
- img2="./data/life.jpg",
230
- label1="What the LMM Sees (Simulated Life)",
231
- label2="What we See (Real Life)",
232
- )
233
- with col2:
234
- st.header("Custom GPT Engineering Tools")
235
- st.link_button("Create JSON Data for a Green Data Village Population 10,000", "https://chat.openai.com/g/g-4bPJUaHS8-create-a-green-data-village")
236
- st.write("""
237
- On clicking "Create Data Village" create a Green Data Village following the 4 Steps below. Output a JSON file similar to the Example by complete the four Steps.
238
-
239
- To generate the provided JSON code, I would instruct a custom GPT to create a detailed description of a hypothetical smart city layout, named "Green Smart Village", with a population of 10,000. This layout should include a grid size of 21x21, a list of buildings and roads, each with specific attributes:
240
-
241
- Step 1: General Instructions:
242
- Generate a smart city layout for "Green Smart Village" with a 21x21 grid. Include a population of 10,000.
243
 
244
- Step 2: Buildings:
245
- For each building, specify its coordinates on the grid, type (e.g., residential, commercial, healthcare facility), size (in terms of the grid), color, and equipped sensors (e.g., smart meters, water flow sensors).
246
- Types of buildings should vary and include residential, commercial, community facilities, school, healthcare facility, green space, utility infrastructure, emergency services, cultural facilities, recreational facilities, innovation center, elderly care home, childcare centers, places of worship, event spaces, guest housing, pet care facilities, public sanitation facilities, environmental monitoring stations, disaster preparedness center, outdoor community spaces, typical road, and typical road crossing.
247
 
248
- Step 3: Assign each building unique sensors based on its type, ensuring a mix of technology like smart meters, occupancy sensors, smart lighting systems, and environmental monitoring sensors.
249
 
250
- Step 4: Roads:
251
- Detail the roads' start and end coordinates, color, and sensors installed.
252
- Ensure roads connect significant areas of the city, providing access to all buildings. Equip roads with sensors for traffic flow, smart streetlights, and pollution monitoring. MAKE SURE ALL BUILDINGS HAVE ACCESS TO A ROAD.
253
-
254
- This test scenario would evaluate the model's ability to creatively assemble a smart city plan with diverse infrastructure and technology implementations, reflecting real-world urban planning challenges and the integration of smart technologies for sustainable and efficient city management.
255
-
256
- Example:
257
- {
258
- "city": "City Name",
259
- "population": "Population Size",
260
- "size": {
261
- "rows": "Number of Rows",
262
- "columns": "Number of Columns"
263
- },
264
- "buildings": [
265
- {
266
- "coords": ["X", "Y"],
267
- "type": "Building Type",
268
- "size": "Building Size",
269
- "color": "Building Color",
270
- "sensors": ["Sensor Types"]
271
- }
272
- ],
273
- "roads": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  {
275
- "start": ["X Start", "Y Start"],
276
- "end": ["X End", "Y End"],
277
- "color": "Road Color",
278
- "sensors": ["Sensor Types"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  }
280
- ]
281
- }
282
-
283
 
284
 
285
- """)
 
286
 
287
  with tab2:
288
 
 
208
  # Tabs +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
209
 
210
  # Create the main app with three tabs
211
+ tab1, tab2, tab3 = st.tabs(["Introduction","Green Village", "Control Room"])
212
 
213
 
214
  with tab1:
215
 
216
+ st.header("RAGE - A day in the Life of Aya City")
 
 
 
217
 
218
+ # Creating columns for the layout
219
+ col1, col2 = st.columns([1, 2])
220
+
221
+ # Displaying the image in the left column
222
  with col1:
223
+ image = Image.open('intro_image.jpg')
224
+ st.image(image, caption='Green Open Data City Aya')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
225
 
 
 
 
226
 
 
227
 
228
+
229
+ # Displaying the text above on the right
230
+ with col2:
231
+ st.markdown('''
232
+ On his first day at Quantum Data Institute in Green Open Data City Aya, Elian marveled at the city’s harmonious blend of technology and nature.
233
+ Guided to his mentor, Dr. Maya Lior, a pioneer in urban data ecosystems, their discussion quickly centered on Aya’s innovative design.
234
+ Dr. Lior explained data analytics and green technologies were intricately woven into the city's infrastructure, and how they used
235
+ a Custom GPT called Green Data City to create the design.
236
+
237
+ To interact with the Green Data City design tool click the button below.
238
+ ''')
239
+
240
+ # Displaying the audio player below the text
241
+ st.audio('intro_audio.mp3')
242
+
243
+
244
+ st.header("Custom GPT Engineering Tools")
245
+ st.link_button("Create JSON Data for a Green Data Village Population 10,000", "https://chat.openai.com/g/g-4bPJUaHS8-create-a-green-data-village")
246
+
247
+ st.write("Explanation of the Custom GPT")
248
+ st.write("""
249
+ On clicking "Create Data Village" create a Green Data Village following the 4 Steps below. Output a JSON file similar to the Example by complete the four Steps.
250
+ To generate the provided JSON code, I would instruct a custom GPT to create a detailed description of a hypothetical smart city layout, named "Green Smart Village", with a population of 10,000. This layout should include a grid size of 21x21, a list of buildings and roads, each with specific attributes:
251
+
252
+ Step 1: General Instructions:
253
+ Generate a smart city layout for "Green Smart Village" with a 21x21 grid. Include a population of 10,000.
254
+
255
+ Step 2: Buildings:
256
+ For each building, specify its coordinates on the grid, type (e.g., residential, commercial, healthcare facility), size (in terms of the grid), color, and equipped sensors (e.g., smart meters, water flow sensors).
257
+ Types of buildings should vary and include residential, commercial, community facilities, school, healthcare facility, green space, utility infrastructure, emergency services, cultural facilities, recreational facilities, innovation center, elderly care home, childcare centers, places of worship, event spaces, guest housing, pet care facilities, public sanitation facilities, environmental monitoring stations, disaster preparedness center, outdoor community spaces, typical road, and typical road crossing.
258
+
259
+ Step 3: Assign each building unique sensors based on its type, ensuring a mix of technology like smart meters, occupancy sensors, smart lighting systems, and environmental monitoring sensors.
260
+
261
+ Step 4: Roads:
262
+ Detail the roads' start and end coordinates, color, and sensors installed.
263
+ Ensure roads connect significant areas of the city, providing access to all buildings. Equip roads with sensors for traffic flow, smart streetlights, and pollution monitoring. MAKE SURE ALL BUILDINGS HAVE ACCESS TO A ROAD.
264
+
265
+ This test scenario would evaluate the model's ability to creatively assemble a smart city plan with diverse infrastructure and technology implementations, reflecting real-world urban planning challenges and the integration of smart technologies for sustainable and efficient city management.
266
+
267
+ Example:
268
  {
269
+ "city": "City Name",
270
+ "population": "Population Size",
271
+ "size": {
272
+ "rows": "Number of Rows",
273
+ "columns": "Number of Columns"
274
+ },
275
+ "buildings": [
276
+ {
277
+ "coords": ["X", "Y"],
278
+ "type": "Building Type",
279
+ "size": "Building Size",
280
+ "color": "Building Color",
281
+ "sensors": ["Sensor Types"]
282
+ }
283
+ ],
284
+ "roads": [
285
+ {
286
+ "start": ["X Start", "Y Start"],
287
+ "end": ["X End", "Y End"],
288
+ "color": "Road Color",
289
+ "sensors": ["Sensor Types"]
290
+ }
291
+ ]
292
  }
 
 
 
293
 
294
 
295
+
296
+ """)
297
 
298
  with tab2:
299