Skip to content
Snippets Groups Projects
Commit 52267138 authored by Leszek Szymczak's avatar Leszek Szymczak
Browse files

Update plwn/download.py

parent 41c988a0
1 merge request!4Adding download option
Pipeline #1049 passed with stage
in 38 seconds
......@@ -15,6 +15,7 @@ config.read(config_path)
def get_available_models():
"""Returns available models."""
root = ET.parse(urlopen("https://minio.clarin-pl.eu/public")).getroot()
available_models = []
for child in root.findall(
......@@ -30,10 +31,7 @@ def get_available_models():
def download(name="default_model"):
"""After called it downloads a specified database model.
Currently only one model available.
"""
"""After called it downloads a specified database model."""
models = get_available_models()
if name == "default_model":
url = config["DOWNLOAD"][name]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment