Erfan11 commited on
Commit
14406ca
1 Parent(s): e1f17cf

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +3 -2
server.py CHANGED
@@ -10,8 +10,9 @@ def index():
10
  def predict():
11
  data = request.json
12
  text = data.get('text')
13
- # Add model prediction logic here
14
- return jsonify({'prediction': 'example result'})
 
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)