Spaces:
Runtime error
Runtime error
csukuangfj
commited on
Commit
•
7537dde
1
Parent(s):
6151cf4
small fixes
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def process_url(
|
|
72 |
url: str,
|
73 |
):
|
74 |
logging.info(f"Processing URL: {url}")
|
75 |
-
with tempfile.
|
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 |
|