SamDaLamb commited on
Commit
9eb5891
·
verified ·
1 Parent(s): 05f9833

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -5,6 +5,14 @@ def greet(name):
5
 
6
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
 
 
 
 
 
 
 
 
 
8
 
9
  def speclab(img):
10
 
 
5
 
6
  demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
 
8
+ from urllib.request import urlretrieve
9
+
10
+ # get image examples from github
11
+ urlretrieve("https://github.com/SamDaaLamb/ValorantTracker/blob/main/clip2_-1450-_jpg.jpg?raw=true", "clip2_-1450-_jpg.jpg") # make sure to use "copy image address when copying image from Github"
12
+ urlretrieve("https://github.com/SamDaaLamb/ValorantTracker/blob/main/clip2_-1450-_jpg.jpg?raw=true", "clip2_-1450-_jpg.jpg")
13
+ examples = [ # need to manually delete cache everytime new examples are added
14
+ ['05829.png'],
15
+ ["10384.png"]
16
 
17
  def speclab(img):
18