Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
29a8f74
1
Parent(s):
96da226
increase timeout
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ def plot_and_df(texts, preds):
|
|
82 |
|
83 |
|
84 |
def get_first_parquet_filename(dataset, config, split):
|
85 |
-
parquet_resp = session.get(f"https://datasets-server.huggingface.co/parquet?dataset={dataset}&config={config}", timeout=
|
86 |
if "error" in parquet_resp:
|
87 |
raise ValueError(parquet_resp["error"])
|
88 |
first_parquet_file_url = [file for file in parquet_resp["parquet_files"] if file["split"] == split][0]["url"]
|
|
|
82 |
|
83 |
|
84 |
def get_first_parquet_filename(dataset, config, split):
|
85 |
+
parquet_resp = session.get(f"https://datasets-server.huggingface.co/parquet?dataset={dataset}&config={config}", timeout=10).json()
|
86 |
if "error" in parquet_resp:
|
87 |
raise ValueError(parquet_resp["error"])
|
88 |
first_parquet_file_url = [file for file in parquet_resp["parquet_files"] if file["split"] == split][0]["url"]
|