File size: 505 Bytes
4c19a5a
 
 
02e90e4
01e655b
4c19a5a
 
02e90e4
01e655b
 
4c19a5a
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import sys

import torch
from modules.utils.JsonObject import JsonObject

from modules.utils import git

runtime_env_vars = JsonObject({})

api = None

versions = JsonObject(
    {
        "python_version": ".".join([str(x) for x in sys.version_info[0:3]]),
        "torch_version": getattr(torch, "__long_version__", torch.__version__),
        # "gradio_version":gr.__version__,
        "git_tag": git.git_tag(),
        "git_branch": git.branch_name(),
        "git_commit": git.commit_hash(),
    }
)