Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,9 @@ async def get_valid_datasets() -> Dict[str, List[str]]:
|
|
14 |
async with httpx.AsyncClient() as session:
|
15 |
response = await session.get(URL)
|
16 |
datasets = response.json()["valid"]
|
17 |
-
return gr.Dropdown.update(choices=datasets, value="
|
|
|
|
|
18 |
|
19 |
async def get_first_rows(dataset: str, config: str, split: str) -> Dict[str, Dict[str, List[Dict]]]:
|
20 |
URL = f"https://datasets-server.huggingface.co/first-rows?dataset={dataset}&config={config}&split={split}"
|
|
|
14 |
async with httpx.AsyncClient() as session:
|
15 |
response = await session.get(URL)
|
16 |
datasets = response.json()["valid"]
|
17 |
+
return gr.Dropdown.update(choices=datasets, value="medical_transcription_40")
|
18 |
+
# The one to watch: https://huggingface.co/rungalileo
|
19 |
+
# rungalileo/medical_transcription_40
|
20 |
|
21 |
async def get_first_rows(dataset: str, config: str, split: str) -> Dict[str, Dict[str, List[Dict]]]:
|
22 |
URL = f"https://datasets-server.huggingface.co/first-rows?dataset={dataset}&config={config}&split={split}"
|