Commit
Β·
3e20174
1
Parent(s):
d041d2b
Update dependencies in pyproject.toml; upgrade gradio_client to 1.8.0 and add evaluate and rouge_score libraries.
Browse files- medvqa/competitions/gi-2025/task_1.py +2 -5
- pyproject.toml +1 -3
medvqa/competitions/gi-2025/task_1.py
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
-
from gradio_client import Client
|
| 2 |
from gradio_client import Client, handle_file
|
| 3 |
from huggingface_hub import snapshot_download, login, whoami
|
| 4 |
-
import sys
|
| 5 |
import argparse
|
| 6 |
import os
|
| 7 |
import subprocess as sp
|
|
@@ -9,7 +7,6 @@ import time
|
|
| 9 |
from datetime import datetime, timezone
|
| 10 |
import shutil # Add this import
|
| 11 |
import json
|
| 12 |
-
import os
|
| 13 |
from huggingface_hub import HfApi, grant_access
|
| 14 |
|
| 15 |
HF_GATE_ACESSLIST = ["SushantGautam",
|
|
@@ -26,8 +23,8 @@ os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
|
| 26 |
submission_file = "submission_task1.py"
|
| 27 |
file_from_validation = "predictions_1.json"
|
| 28 |
|
| 29 |
-
min_library = ["datasets>=3.4.1", "transformers",
|
| 30 |
-
'tqdm', "gradio_client>=1.8.0", "medvqa"]
|
| 31 |
|
| 32 |
print("π ImageCLEFmed-MEDVQA-GI-2025 π",
|
| 33 |
"https://github.com/simula/ImageCLEFmed-MEDVQA-GI-2025")
|
|
|
|
|
|
|
| 1 |
from gradio_client import Client, handle_file
|
| 2 |
from huggingface_hub import snapshot_download, login, whoami
|
|
|
|
| 3 |
import argparse
|
| 4 |
import os
|
| 5 |
import subprocess as sp
|
|
|
|
| 7 |
from datetime import datetime, timezone
|
| 8 |
import shutil # Add this import
|
| 9 |
import json
|
|
|
|
| 10 |
from huggingface_hub import HfApi, grant_access
|
| 11 |
|
| 12 |
HF_GATE_ACESSLIST = ["SushantGautam",
|
|
|
|
| 23 |
submission_file = "submission_task1.py"
|
| 24 |
file_from_validation = "predictions_1.json"
|
| 25 |
|
| 26 |
+
min_library = ["datasets>=3.4.1", "transformers", "evaluate",
|
| 27 |
+
"rouge_score", 'tqdm', "gradio_client>=1.8.0", "medvqa"]
|
| 28 |
|
| 29 |
print("π ImageCLEFmed-MEDVQA-GI-2025 π",
|
| 30 |
"https://github.com/simula/ImageCLEFmed-MEDVQA-GI-2025")
|
pyproject.toml
CHANGED
|
@@ -9,9 +9,7 @@ classifiers = [
|
|
| 9 |
dependencies = [
|
| 10 |
"huggingface_hub",
|
| 11 |
"huggingface_hub[hf_transfer]",
|
| 12 |
-
"gradio_client==1.
|
| 13 |
-
"evaluate",
|
| 14 |
-
"rouge_score",
|
| 15 |
]
|
| 16 |
description = "Competition Submission CLI for ImageCLEFmed-MedVQA-GI-2025 (https://github.com/simula/ImageCLEFmed-MEDVQA-GI-2025)"
|
| 17 |
license = {text = "MIT"}
|
|
|
|
| 9 |
dependencies = [
|
| 10 |
"huggingface_hub",
|
| 11 |
"huggingface_hub[hf_transfer]",
|
| 12 |
+
"gradio_client==1.8.0",
|
|
|
|
|
|
|
| 13 |
]
|
| 14 |
description = "Competition Submission CLI for ImageCLEFmed-MedVQA-GI-2025 (https://github.com/simula/ImageCLEFmed-MEDVQA-GI-2025)"
|
| 15 |
license = {text = "MIT"}
|