Spaces:
Runtime error
Runtime error
| from flask import Flask, request | |
| from inference import predict | |
| app = Flask(__name__) | |
| def index(): | |
| return {"output": "Hello, world!"} | |
| def predictSentiment(text): | |
| #return text | |
| return predict(text) | |
| if __name__ == "__main__": | |
| app.run(host="0.0.0.0", port=7860) | |