File size: 615 Bytes
4c19a5a
 
 
02e90e4
01e655b
627d3d7
4c19a5a
374f426
02e90e4
01e655b
374f426
 
01e655b
4c19a5a
 
 
 
 
 
 
 
 
627d3d7
4c19a5a
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import sys

import torch
from modules.utils.JsonObject import JsonObject

from modules.utils import git, ffmpeg

# TODO impl RuntimeEnvVars() class
runtime_env_vars = JsonObject({})

auto_gc = True

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(),
        "ffmpeg_version": ffmpeg.ffmpeg_version(),
    }
)