Commit
·
e141df5
1
Parent(s):
edb3bf2
support url
Browse files
app.py
CHANGED
@@ -146,7 +146,9 @@ def process_url(
|
|
146 |
random_filename = f"{uuid.uuid4().hex}{ext}"
|
147 |
urllib.request.urlretrieve(url, random_filename)
|
148 |
os.system(f"ls -lh {random_filename}")
|
149 |
-
return random_filename, process(
|
|
|
|
|
150 |
|
151 |
|
152 |
def process(language: str, repo_id: str, add_punctuation: str, in_filename: str):
|
|
|
146 |
random_filename = f"{uuid.uuid4().hex}{ext}"
|
147 |
urllib.request.urlretrieve(url, random_filename)
|
148 |
os.system(f"ls -lh {random_filename}")
|
149 |
+
return random_filename, *process(
|
150 |
+
language, repo_id, add_punctuation, random_filename
|
151 |
+
)
|
152 |
|
153 |
|
154 |
def process(language: str, repo_id: str, add_punctuation: str, in_filename: str):
|