Spaces:
Running
Running
Commit
·
2b57175
1
Parent(s):
734da9b
Add system and subprocess imports; print installed packages in gradio interface
Browse files- gradio_interface.py +4 -0
gradio_interface.py
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import json
|
| 3 |
from datetime import datetime, timezone
|
|
@@ -8,6 +10,8 @@ import glob
|
|
| 8 |
from pathlib import Path
|
| 9 |
from huggingface_hub import whoami
|
| 10 |
print("Account token used to connect to HuggingFace: ", whoami()['name'])
|
|
|
|
|
|
|
| 11 |
|
| 12 |
SUBMISSION_REPO = "SimulaMet/medvqa-submissions"
|
| 13 |
hub_path = None
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
import subprocess
|
| 3 |
import gradio as gr
|
| 4 |
import json
|
| 5 |
from datetime import datetime, timezone
|
|
|
|
| 10 |
from pathlib import Path
|
| 11 |
from huggingface_hub import whoami
|
| 12 |
print("Account token used to connect to HuggingFace: ", whoami()['name'])
|
| 13 |
+
print(subprocess.check_output(
|
| 14 |
+
[sys.executable, "-m", "pip", "list"]).decode("utf-8"))
|
| 15 |
|
| 16 |
SUBMISSION_REPO = "SimulaMet/medvqa-submissions"
|
| 17 |
hub_path = None
|