Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
import json
|
|
|
3 |
import matplotlib.pyplot as plt
|
4 |
|
5 |
# Function to load and parse the JSON data
|
@@ -44,7 +45,7 @@ def main():
|
|
44 |
st.title('Green Smart Village Layout')
|
45 |
|
46 |
# Load and display the data
|
47 |
-
data = load_data('grid.json') #
|
48 |
st.json(data)
|
49 |
|
50 |
# Drawing and displaying the grid layout
|
|
|
1 |
import streamlit as st
|
2 |
import json
|
3 |
+
import pandas as pd
|
4 |
import matplotlib.pyplot as plt
|
5 |
|
6 |
# Function to load and parse the JSON data
|
|
|
45 |
st.title('Green Smart Village Layout')
|
46 |
|
47 |
# Load and display the data
|
48 |
+
data = load_data('grid.json') # Make sure to adjust the path if necessary
|
49 |
st.json(data)
|
50 |
|
51 |
# Drawing and displaying the grid layout
|