Spaces:
Sleeping
Sleeping
Vela
commited on
Commit
·
60d1a5c
1
Parent(s):
a0f1fda
added function to return predict
Browse files
src/api/__pycache__/main.cpython-312.pyc
CHANGED
|
Binary files a/src/api/__pycache__/main.cpython-312.pyc and b/src/api/__pycache__/main.cpython-312.pyc differ
|
|
|
src/api/main.py
CHANGED
|
@@ -24,6 +24,6 @@ def display_dimention(message : str = "Hello World"):
|
|
| 24 |
def display_prediction(message : str = "Give me a sms to predict"):
|
| 25 |
try:
|
| 26 |
prediction = encoding_model.get_prediction(message)
|
| 27 |
-
return prediction
|
| 28 |
except Exception as e:
|
| 29 |
return f"Unable to fetch the data {e}"
|
|
|
|
| 24 |
def display_prediction(message : str = "Give me a sms to predict"):
|
| 25 |
try:
|
| 26 |
prediction = encoding_model.get_prediction(message)
|
| 27 |
+
return {"message" : f"Given sms is a {prediction}"}
|
| 28 |
except Exception as e:
|
| 29 |
return f"Unable to fetch the data {e}"
|