Your mission is to implement an 💬NLP chatbot answering questions about science.
You will add your logic to the main.py
file inside the execute
function.
def execute(request: SimpleText, ray: OpenfabricExecutionRay) -> SimpleText:
output = []
for text in request.text:
response = '' # <<< --Your magic goes here
output.append(response)
return SimpleText(dict(text=output))
You are free to use any package or library you see feet as long as you follow these rules:
- 👎 You can't call any external service (e.g. chatGPT)
- 👎 You can't copy and paste from other peoples work
The application can be executed in two different ways:
- locally by running the
start.sh
- on in a docker container using
Dockerfile