Spaces:
Runtime error
Runtime error
eaglelandsonce
commited on
Commit
•
628c5fb
1
Parent(s):
a33e5ee
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,39 @@ import streamlit as st
|
|
2 |
import json
|
3 |
import matplotlib.pyplot as plt
|
4 |
import time
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
st.set_page_config(layout="wide")
|
7 |
|
|
|
|
|
|
|
8 |
# HIN Number +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
9 |
from SPARQLWrapper import SPARQLWrapper, JSON
|
10 |
from streamlit_agraph import agraph, TripleStore, Node, Edge, Config
|
|
|
2 |
import json
|
3 |
import matplotlib.pyplot as plt
|
4 |
import time
|
5 |
+
import pygame
|
6 |
+
|
7 |
+
|
8 |
+
# Initialize Pygame
|
9 |
+
pygame.init()
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
# Set up game clock
|
14 |
+
clock = pygame.time.Clock()
|
15 |
+
# Game loop
|
16 |
+
running = True
|
17 |
+
while running:
|
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")
|
34 |
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
# HIN Number +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
39 |
from SPARQLWrapper import SPARQLWrapper, JSON
|
40 |
from streamlit_agraph import agraph, TripleStore, Node, Edge, Config
|