mirror of
https://github.com/katanemo/plano.git
synced 2026-06-11 15:05:14 +02:00
model server build (#127)
* first commit to have model_server not be dependent on Docker * making changes to fix the docker-compose file for archgw to set DNS_V4 and minor fixes with the build * additional fixes for model server to be separated out in the build * additional fixes for model server to be separated out in the build * fix to get model_server to be built as a separate python process. TODO: fix the embeddings logs after cli completes * fixing init to pull tempfile using the tempfile python package --------- Co-authored-by: Salman Paracha <salmanparacha@MacBook-Pro-261.local>
This commit is contained in:
parent
7d21359f5b
commit
b60ceb9168
21 changed files with 3390 additions and 154 deletions
26
model_server/setup.py
Normal file
26
model_server/setup.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
from setuptools import setup, find_packages
|
||||
|
||||
# Function to read requirements.txt
|
||||
def parse_requirements(filename):
|
||||
with open(filename, 'r') as file:
|
||||
return [line.strip() for line in file if line.strip() and not line.startswith("#")]
|
||||
|
||||
# Call the parse_requirements function to get the list of dependencies
|
||||
requirements = parse_requirements('requirements.txt')
|
||||
print(f"packages to install: {find_packages()}")
|
||||
|
||||
setup(
|
||||
name="model_server",
|
||||
version="0.1",
|
||||
packages=find_packages(),
|
||||
install_requires=requirements,
|
||||
package_data={
|
||||
# Specify the package and the data files you want to include
|
||||
'app': ['/*.yaml'], # Includes all .yaml files in the config/ folder
|
||||
},
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'model_server=app:run_server',
|
||||
],
|
||||
},
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue