Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -230,8 +230,57 @@ with tab1:
|
|
230 |
)
|
231 |
with col2:
|
232 |
st.header("Custom GPT Engineering Tools")
|
233 |
-
st.link_button("Create
|
234 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
|
236 |
with tab2:
|
237 |
|
|
|
230 |
)
|
231 |
with col2:
|
232 |
st.header("Custom GPT Engineering Tools")
|
233 |
+
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")
|
234 |
+
st.write("""
|
235 |
+
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.
|
236 |
+
|
237 |
+
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:
|
238 |
+
|
239 |
+
Step 1: General Instructions:
|
240 |
+
Generate a smart city layout for "Green Smart Village" with a 21x21 grid. Include a population of 10,000.
|
241 |
+
|
242 |
+
Step 2: Buildings:
|
243 |
+
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).
|
244 |
+
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.
|
245 |
+
|
246 |
+
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.
|
247 |
+
|
248 |
+
Step 4: Roads:
|
249 |
+
Detail the roads' start and end coordinates, color, and sensors installed.
|
250 |
+
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.
|
251 |
+
|
252 |
+
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.
|
253 |
+
|
254 |
+
Example:
|
255 |
+
{
|
256 |
+
"city": "City Name",
|
257 |
+
"population": "Population Size",
|
258 |
+
"size": {
|
259 |
+
"rows": "Number of Rows",
|
260 |
+
"columns": "Number of Columns"
|
261 |
+
},
|
262 |
+
"buildings": [
|
263 |
+
{
|
264 |
+
"coords": ["X", "Y"],
|
265 |
+
"type": "Building Type",
|
266 |
+
"size": "Building Size",
|
267 |
+
"color": "Building Color",
|
268 |
+
"sensors": ["Sensor Types"]
|
269 |
+
}
|
270 |
+
],
|
271 |
+
"roads": [
|
272 |
+
{
|
273 |
+
"start": ["X Start", "Y Start"],
|
274 |
+
"end": ["X End", "Y End"],
|
275 |
+
"color": "Road Color",
|
276 |
+
"sensors": ["Sensor Types"]
|
277 |
+
}
|
278 |
+
]
|
279 |
+
}
|
280 |
+
|
281 |
+
|
282 |
+
|
283 |
+
""")
|
284 |
|
285 |
with tab2:
|
286 |
|