mirror of
https://github.com/katanemo/plano.git
synced 2026-04-28 10:26:36 +02:00
remove dependency on docker-compose when starting up archgw (#305)
This commit is contained in:
parent
726f1a3185
commit
0ff3d43008
16 changed files with 3761 additions and 274 deletions
|
|
@ -3,7 +3,6 @@ import yaml
|
|||
import torch
|
||||
import string
|
||||
import logging
|
||||
import pkg_resources
|
||||
|
||||
from openai import OpenAI
|
||||
|
||||
|
|
@ -11,13 +10,6 @@ from openai import OpenAI
|
|||
logger_instance = None
|
||||
|
||||
|
||||
def load_yaml_config(file_name):
|
||||
# Load the YAML file from the package
|
||||
yaml_path = pkg_resources.resource_filename("app", file_name)
|
||||
with open(yaml_path, "r") as yaml_file:
|
||||
return yaml.safe_load(yaml_file)
|
||||
|
||||
|
||||
def get_device():
|
||||
available_device = {
|
||||
"cpu": True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue