sahilmayekar commited on
Commit
260efd5
·
1 Parent(s): e5ee3ad

Initial Commit

Browse files
Files changed (4) hide show
  1. Dockerfile +1 -1
  2. entrypoint.sh +1 -1
  3. requirements.txt +1 -2
  4. src/app.py +5 -8
Dockerfile CHANGED
@@ -38,7 +38,7 @@ USER ollama
38
 
39
  ENV OLLAMA_HOST=0.0.0.0:11434
40
 
41
- EXPOSE 11434 5001
42
 
43
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
44
 
 
38
 
39
  ENV OLLAMA_HOST=0.0.0.0:11434
40
 
41
+ EXPOSE 11434 5000
42
 
43
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
44
 
entrypoint.sh CHANGED
@@ -11,4 +11,4 @@ ollama pull nomic-embed-text:latest
11
 
12
  ollama pull gpt-oss:20b || true
13
 
14
- python3 .src/app.py
 
11
 
12
  ollama pull gpt-oss:20b || true
13
 
14
+ flask --app src/app run --debug
requirements.txt CHANGED
@@ -1,5 +1,4 @@
1
- fastapi
2
- uvicorn[standard]
3
  requests
4
  pytz
5
  langchain
 
1
+ flask
 
2
  requests
3
  pytz
4
  langchain
src/app.py CHANGED
@@ -1,10 +1,7 @@
1
- from fastapi import FastAPI
2
 
3
- app = FastAPI()
4
 
5
- @app.get("/")
6
- def greet_json():
7
- return {"Hello": "World!"}
8
-
9
-
10
- app.run(host='0.0.0.0', port=5001)
 
1
+ from flask import Flask
2
 
3
+ app = Flask(__name__)
4
 
5
+ @app.route('/')
6
+ def hello():
7
+ return 'Hello, World!'