Spaces:
Runtime error
Runtime error
eaglelandsonce
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -14,20 +14,7 @@ pygame.init()
|
|
14 |
clock = pygame.time.Clock()
|
15 |
# Game loop
|
16 |
running = True
|
17 |
-
|
18 |
-
# Handle events
|
19 |
-
for event in pygame.event.get():
|
20 |
-
if event.type == pygame.QUIT:
|
21 |
-
running = False
|
22 |
-
# Update game state here
|
23 |
-
# Render game state to screen
|
24 |
-
print("hellow") # Fill the screen with black
|
25 |
-
|
26 |
-
# Cap the frame rate to 60 frames per second
|
27 |
-
clock.tick(1)
|
28 |
-
# Quit Pygame
|
29 |
-
pygame.quit()
|
30 |
-
sys.exit()
|
31 |
|
32 |
|
33 |
st.set_page_config(layout="wide")
|
@@ -138,6 +125,21 @@ def main():
|
|
138 |
data = load_data('grid.json') # Ensure this path is correct
|
139 |
fig = draw_grid(data)
|
140 |
st.pyplot(fig)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
|
142 |
with col3:
|
143 |
st.header("Check Your HIN Number")
|
|
|
14 |
clock = pygame.time.Clock()
|
15 |
# Game loop
|
16 |
running = True
|
17 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
|
20 |
st.set_page_config(layout="wide")
|
|
|
125 |
data = load_data('grid.json') # Ensure this path is correct
|
126 |
fig = draw_grid(data)
|
127 |
st.pyplot(fig)
|
128 |
+
|
129 |
+
while running:
|
130 |
+
# Handle events
|
131 |
+
for event in pygame.event.get():
|
132 |
+
if event.type == pygame.QUIT:
|
133 |
+
running = False
|
134 |
+
# Update game state here
|
135 |
+
# Render game state to screen
|
136 |
+
print("hellow") # Fill the screen with black
|
137 |
+
|
138 |
+
# Cap the frame rate to 60 frames per second
|
139 |
+
clock.tick(1)
|
140 |
+
# Quit Pygame
|
141 |
+
pygame.quit()
|
142 |
+
sys.exit()
|
143 |
|
144 |
with col3:
|
145 |
st.header("Check Your HIN Number")
|