awacke1 commited on
Commit
b082589
1 Parent(s): e677dcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -192,9 +192,12 @@ import requests
192
 
193
  # Function to display images (for illustration purposes)
194
  def display_image(url):
195
- response = requests.get(url)
196
- image = Image.open(response.raw)
197
- st.image(image)
 
 
 
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")