Hi @Omid
Yes interpreter module is deprecated in Rasa 3.x as Both NLU and CORE have been combined in 3.x version
To use only the NLU portion, Use this
from fastapi import FastAPI
from rasa.core.agent import Agent
app = FastAPI()
@app.get("/predictText")
async def read_item(modelId: str, query: str):
modelName = f'{modelId}_nlu.tar.gz'
agent_nlu = Agent.load(modelName)
message = await agent_nlu.parse_message(query)
# print(message)
return {"prediction_info": message}