Skip to content

Commit

Permalink
fix docker app (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
emrgnt-cmplxty authored May 30, 2024
1 parent 19d55c7 commit 3ae8acc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ COPY . /app
EXPOSE 8000

# Set the command to run the application with Gunicorn
CMD ["gunicorn", "r2r.examples.servers.configurable_pipeline:default_app", "--bind", "0.0.0.0:8000", "--workers", "2", "--threads", "8", "--timeout", "0", "--worker-class", "uvicorn.workers.UvicornWorker"]
CMD ["gunicorn", "r2r.examples.base_app:app", "--bind", "0.0.0.0:8000", "--workers", "2", "--threads", "8", "--timeout", "0", "--worker-class", "uvicorn.workers.UvicornWorker"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "r2r"
version = "0.2.01"
version = "0.2.02"
description = "SciPhi R2R"
authors = ["Owen Colegrove <owen@sciphi.ai>"]
license = "MIT"
Expand Down
15 changes: 15 additions & 0 deletions r2r/examples/base_app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from r2r import (
R2RApp,
R2RConfig,
R2RPipeFactory,
R2RPipelineFactory,
R2RProviderFactory,
)

config = R2RConfig.from_json()

providers = R2RProviderFactory(config).create_providers()
pipes = R2RPipeFactory(config, providers).create_pipes()
pipelines = R2RPipelineFactory(config, pipes).create_pipelines()
r2r = R2RApp(config, providers, pipelines)
app = r2r.app
1 change: 0 additions & 1 deletion r2r/examples/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import asyncio
import json
import glob
import logging
import os
import time
Expand Down

0 comments on commit 3ae8acc

Please sign in to comment.