Spaces:
Running
Running
Update server.py
Browse files
server.py
CHANGED
@@ -10,8 +10,9 @@ def index():
|
|
10 |
def predict():
|
11 |
data = request.json
|
12 |
text = data.get('text')
|
13 |
-
#
|
14 |
-
|
|
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
app.run(debug=True)
|
|
|
10 |
def predict():
|
11 |
data = request.json
|
12 |
text = data.get('text')
|
13 |
+
# Example prediction logic
|
14 |
+
result = "example result" # Replace with actual model prediction logic
|
15 |
+
return jsonify({'prediction': result})
|
16 |
|
17 |
if __name__ == "__main__":
|
18 |
app.run(debug=True)
|