Shymaa2611 commited on
Commit ·
06ee2ee
1
Parent(s): 0b88451
update
Browse files- __pycache__/api.cpython-310.pyc +0 -0
- __pycache__/db_utils.cpython-310.pyc +0 -0
- api.py +1 -1
- db_utils.py +0 -2
- model/__pycache__/inference.cpython-310.pyc +0 -0
__pycache__/api.cpython-310.pyc
ADDED
|
Binary file (1.33 kB). View file
|
|
|
__pycache__/db_utils.cpython-310.pyc
ADDED
|
Binary file (1.98 kB). View file
|
|
|
api.py
CHANGED
|
@@ -25,7 +25,7 @@ async def predict(data: InputData):
|
|
| 25 |
async def get_predict():
|
| 26 |
return get_latest_prediction()
|
| 27 |
|
| 28 |
-
app.get("/get_all_predictions")
|
| 29 |
async def get_all():
|
| 30 |
return get_all_predictions()
|
| 31 |
|
|
|
|
| 25 |
async def get_predict():
|
| 26 |
return get_latest_prediction()
|
| 27 |
|
| 28 |
+
@app.get("/get_all_predictions")
|
| 29 |
async def get_all():
|
| 30 |
return get_all_predictions()
|
| 31 |
|
db_utils.py
CHANGED
|
@@ -56,8 +56,6 @@ def get_all_predictions():
|
|
| 56 |
c.execute('''
|
| 57 |
SELECT input, predicted_class, probability, timestamp
|
| 58 |
FROM predictions
|
| 59 |
-
ORDER BY id DESC
|
| 60 |
-
LIMIT 2
|
| 61 |
''')
|
| 62 |
rows = c.fetchall()
|
| 63 |
conn.close()
|
|
|
|
| 56 |
c.execute('''
|
| 57 |
SELECT input, predicted_class, probability, timestamp
|
| 58 |
FROM predictions
|
|
|
|
|
|
|
| 59 |
''')
|
| 60 |
rows = c.fetchall()
|
| 61 |
conn.close()
|
model/__pycache__/inference.cpython-310.pyc
CHANGED
|
Binary files a/model/__pycache__/inference.cpython-310.pyc and b/model/__pycache__/inference.cpython-310.pyc differ
|
|
|