Open arihantparsoya opened 1 year ago
They are facing same issues: https://github.com/oobabooga/text-generation-webui/issues/3762
assigning @sidmohanty11
Hey @arihantparsoya, can you please tell what version of embedchain are you using?
Also, can you please try using the latest version? I think that should fix the issue,
In our newer versions, we use Pipeline instead of App, you can achieve the same by,
from flask import Flask, jsonify, request
from flask_cors import CORS
from embedchain import Pipeline as App
import os
app = Flask(__name__)
CORS(app, origins="*")
embedchain_bot = App()
if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0', port=4000)
Please let me know if you encounter any issues
🐛 Describe the bug
When trying to add embedchain app in a flask project and running it on docker, I am getting the following error.
Python Code
I am using
python:3.11
image to run the flask project and have installed the dependencies before starting the project.DOCKERFILE