Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -192,9 +192,12 @@ import requests
|
|
192 |
|
193 |
# Function to display images (for illustration purposes)
|
194 |
def display_image(url):
|
195 |
-
|
196 |
-
|
197 |
-
|
|
|
|
|
|
|
198 |
|
199 |
# Title
|
200 |
st.title("Streamlit Game Development Guide - 2023")
|
|
|
192 |
|
193 |
# Function to display images (for illustration purposes)
|
194 |
def display_image(url):
|
195 |
+
try:
|
196 |
+
response = requests.get(url)
|
197 |
+
image = Image.open(response.raw)
|
198 |
+
st.image(image)
|
199 |
+
except:
|
200 |
+
st.write('Add image URL here')
|
201 |
|
202 |
# Title
|
203 |
st.title("Streamlit Game Development Guide - 2023")
|