jaifar530 commited on
Commit
55940d8
·
unverified ·
1 Parent(s): d8667c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py CHANGED
@@ -16,6 +16,24 @@ headers = {
16
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3',
17
  }
18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
 
21
  # Check if the model folder exists
 
16
  'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3',
17
  }
18
 
19
+ #################### Load the banner image ##########
20
+ # Fetch the image from the URL
21
+ banner_image_request = requests.get("https://jaifar.net/ADS/banner.jpg", headers=headers)
22
+
23
+ # Save the downloaded content
24
+ banner_image_path = "banner.jpg"
25
+ with open(banner_image_path, "wb") as f:
26
+ f.write(banner_image_request.content)
27
+
28
+
29
+ # Open the image
30
+ banner_image = Image.open(banner_image_path)
31
+
32
+ # Display the image using streamlit
33
+ st.image(banner_image, caption='', use_column_width=True)
34
+
35
+ ################ end loading banner image ##################
36
+
37
 
38
 
39
  # Check if the model folder exists