Spaces:
Sleeping
Sleeping
shoshana-levitt
commited on
Commit
•
92a4682
1
Parent(s):
4f75282
edit Dockerfile
Browse files- Dockerfile +3 -2
- __pycache__/app.cpython-310.pyc +0 -0
- app.py +0 -4
- requirements.txt +1 -0
Dockerfile
CHANGED
@@ -3,5 +3,6 @@ RUN useradd -m -u 1000 user
|
|
3 |
WORKDIR /app
|
4 |
COPY --chown=user ./requirements.txt requirements.txt
|
5 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
6 |
-
COPY --chown=user .
|
7 |
-
|
|
|
|
3 |
WORKDIR /app
|
4 |
COPY --chown=user ./requirements.txt requirements.txt
|
5 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
6 |
+
COPY --chown=user . .
|
7 |
+
EXPOSE 7860
|
8 |
+
CMD ["chainlit", "run", "app.py", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
__pycache__/app.cpython-310.pyc
CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
|
|
app.py
CHANGED
@@ -19,10 +19,6 @@ load_dotenv()
|
|
19 |
|
20 |
app = FastAPI()
|
21 |
|
22 |
-
@app.get("/")
|
23 |
-
async def read_root():
|
24 |
-
return {"Hello": "World"}
|
25 |
-
|
26 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=100)
|
27 |
|
28 |
system_template = """ Try to find detailed information
|
|
|
19 |
|
20 |
app = FastAPI()
|
21 |
|
|
|
|
|
|
|
|
|
22 |
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=100)
|
23 |
|
24 |
system_template = """ Try to find detailed information
|
requirements.txt
CHANGED
@@ -2,6 +2,7 @@ fastapi
|
|
2 |
uvicorn[standard]
|
3 |
langchain
|
4 |
langchain-community
|
|
|
5 |
chainlit==0.7.700
|
6 |
cohere==4.37
|
7 |
openai==1.3.5
|
|
|
2 |
uvicorn[standard]
|
3 |
langchain
|
4 |
langchain-community
|
5 |
+
chromadb
|
6 |
chainlit==0.7.700
|
7 |
cohere==4.37
|
8 |
openai==1.3.5
|