csukuangfj commited on
Commit
7537dde
1 Parent(s): 6151cf4

small fixes

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def process_url(
72
  url: str,
73
  ):
74
  logging.info(f"Processing URL: {url}")
75
- with tempfile.TemporaryFile() as f:
76
  try:
77
  urllib.request.urlretrieve(url, f.name)
78
 
72
  url: str,
73
  ):
74
  logging.info(f"Processing URL: {url}")
75
+ with tempfile.NamedTemporaryFile() as f:
76
  try:
77
  urllib.request.urlretrieve(url, f.name)
78