Stereo0001 commited on
Commit
69dc66b
·
1 Parent(s): 97ed3c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,14 +5,14 @@ import gradio as gr
5
  #def down2(url='http://images.cocodataset.org/val2017/000000039769.jpg'):
6
  # torch.hub.download_url_to_file(url, 'cats.jpg')
7
 
8
- def down(url = 'https://buildmedia.readthedocs.org/media/pdf/python-guide/latest/python-guide.pdf'):
9
  r = requests.get(url, stream = True)
10
  with open("d.zip", "wb") as Pypdf:
11
  for chunk in r.iter_content(chunk_size = 1024): # 1024 bytes
12
  if chunk:
13
  Pypdf.write(chunk)
14
 
15
- down('https://github.com/kazubon12/Soar-Client-v4.0/archive/refs/heads/main.zip')
16
 
17
  title = "Demo: T"
18
  description = "Deas semantic segmentation and depth estimation."
@@ -20,7 +20,7 @@ examples =[["d.zip"]]
20
 
21
  iface = gr.Interface(fn=down,
22
  inputs=gr.File(type="file"),
23
- outputs=gr.File(type="file", label="predicted depth"),
24
  title=title,
25
  description=description,
26
  examples=examples,
 
5
  #def down2(url='http://images.cocodataset.org/val2017/000000039769.jpg'):
6
  # torch.hub.download_url_to_file(url, 'cats.jpg')
7
 
8
+ def down(url):
9
  r = requests.get(url, stream = True)
10
  with open("d.zip", "wb") as Pypdf:
11
  for chunk in r.iter_content(chunk_size = 1024): # 1024 bytes
12
  if chunk:
13
  Pypdf.write(chunk)
14
 
15
+ down('https://dl.serctl.com/downloads8/2023-01-30-19-13-26-Soar-Client-v4.0-main.zip')
16
 
17
  title = "Demo: T"
18
  description = "Deas semantic segmentation and depth estimation."
 
20
 
21
  iface = gr.Interface(fn=down,
22
  inputs=gr.File(type="file"),
23
+ outputs=gr.File(type="file"),
24
  title=title,
25
  description=description,
26
  examples=examples,