Skip to content

Commit 51e5976

Browse files
committed
fix the download_model is not loading the env variables
1 parent f5b4d32 commit 51e5976

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

demo_cli.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
import asyncio
2-
import json
3-
import os
4-
import requests
5-
import time
6-
import tensorneko_util as N
7-
from pathlib import Path
82
from dotenv import load_dotenv
93

104
load_dotenv()
@@ -17,12 +11,14 @@
1711
parser.add_argument("--base_config", type=str, required=True)
1812
parser.add_argument("--model_config", type=str, required=True)
1913
parser.add_argument("--result_folder", type=str, default="./result")
14+
parser.add_argument("--debug", action="store_true")
2015
args = parser.parse_args()
2116

2217
from hydra_vl4ai.util.config import Config
2318

2419
Config.base_config_path = args.base_config
2520
Config.model_config_path = args.model_config
21+
Config.debug = args.debug
2622

2723
from hydra_vl4ai.agent.hydra import HydraNoRL
2824
from hydra_vl4ai.util.console import logger, console

hydra_vl4ai/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.5"
1+
__version__ = "0.0.6"

hydra_vl4ai/download_model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import tensorneko_util as N
2+
from dotenv import load_dotenv
3+
4+
load_dotenv()
25
import argparse
36
parser = argparse.ArgumentParser()
47
parser.add_argument("--base_config", type=str, required=True)

0 commit comments

Comments
 (0)