TFLkedimestan commited on
Commit
5cc8324
1 Parent(s): 76909bb
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. __pycache__/main.cpython-311.pyc +0 -0
  3. main.py +5 -0
Dockerfile CHANGED
@@ -10,4 +10,4 @@ COPY --chown=user ./requirements.txt requirements.txt
10
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
  COPY --chown=user . /app
13
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
10
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
  COPY --chown=user . /app
13
+ CMD fastapi run --reload --host=0.0.0.0 --port=7860
__pycache__/main.cpython-311.pyc ADDED
Binary file (4.01 kB). View file
 
main.py CHANGED
@@ -27,6 +27,11 @@ class TextInput(BaseModel):
27
  class AgeInput(BaseModel):
28
  features: list[float] # 15 özellik içeren liste
29
 
 
 
 
 
 
30
  @app.post("/predict/")
31
  async def predict(input: TextInput):
32
  try:
 
27
  class AgeInput(BaseModel):
28
  features: list[float] # 15 özellik içeren liste
29
 
30
+ @app.get('/')
31
+ def home():
32
+ return {"hello": "Bitfumes"}
33
+
34
+
35
  @app.post("/predict/")
36
  async def predict(input: TextInput):
37
  try: