terryyz commited on
Commit
f70c6de
1 Parent(s): f2539bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -7,7 +7,6 @@ import time
7
  import uuid
8
  import glob
9
  import shutil
10
- import urllib
11
  from pathlib import Path
12
 
13
  class Logger:
@@ -174,7 +173,6 @@ with gr.Blocks() as demo:
174
  result_file = find_result_file()
175
  if result_file:
176
  print(f"Result file: {result_file}")
177
- urllib.request.urlretrieve(result_file, result_file)
178
  return (gr.update(label="Evaluation completed. Result file found."),
179
  gr.Button(visible=False),
180
  gr.DownloadButton(label="Download Result", value=result_file))
 
7
  import uuid
8
  import glob
9
  import shutil
 
10
  from pathlib import Path
11
 
12
  class Logger:
 
173
  result_file = find_result_file()
174
  if result_file:
175
  print(f"Result file: {result_file}")
 
176
  return (gr.update(label="Evaluation completed. Result file found."),
177
  gr.Button(visible=False),
178
  gr.DownloadButton(label="Download Result", value=result_file))