Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -248,33 +248,31 @@ with tab1:
|
|
| 248 |
|
| 249 |
|
| 250 |
st.header("Custom GPT Engineering Tools")
|
| 251 |
-
st.link_button("
|
| 252 |
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
Detail the roads' start and end coordinates, color, and sensors installed. 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.
|
| 277 |
-
""")
|
| 278 |
|
| 279 |
with tab2:
|
| 280 |
|
|
|
|
| 248 |
|
| 249 |
|
| 250 |
st.header("Custom GPT Engineering Tools")
|
| 251 |
+
st.link_button("Green Data City JSON Data Creation for Population 10,000 to 50,000", "https://chat.openai.com/g/g-4bPJUaHS8-create-a-green-data-village")
|
| 252 |
|
| 253 |
+
if st.button('Show/Hide Instructions for "Create Green Data City"'):
|
| 254 |
+
# Toggle visibility
|
| 255 |
+
st.session_state.show_instructions = not st.session_state.get('show_instructions', False)
|
| 256 |
+
|
| 257 |
+
# Check if the instructions should be shown
|
| 258 |
+
if st.session_state.get('show_instructions', False):
|
| 259 |
+
st.write("""
|
| 260 |
+
On clicking "Create Data Village" create a Green Data Village following the 4 Steps below. Output a JSON file similar to the Example by completing the four Steps.
|
| 261 |
+
|
| 262 |
+
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:
|
| 263 |
+
|
| 264 |
+
**Step 1:** General Instructions:
|
| 265 |
+
Generate a smart city layout for "Green Smart Village" with a 21x21 grid. Include a population of 10,000.
|
| 266 |
+
|
| 267 |
+
**Step 2:** Buildings:
|
| 268 |
+
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).
|
| 269 |
+
Types of buildings should vary and include a comprehensive list specified in the instructions.
|
| 270 |
+
|
| 271 |
+
**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.
|
| 272 |
+
|
| 273 |
+
**Step 4:** Roads:
|
| 274 |
+
Detail the roads' start and end coordinates, color, and sensors installed. 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.
|
| 275 |
+
""")
|
|
|
|
|
|
|
| 276 |
|
| 277 |
with tab2:
|
| 278 |
|