I am starting to play with building AI prompts, and use them in a power app. I have a custom prompt that I used as is as the text classification prompt. In my powerapp I added the custom prompt, and 3 objects on my page. Two text fields and a button. This is the code I have on my button:
UpdateContext({myVar: 'Define Task Skill'.Predict(TextInput1.Text, TextInput2_1.Text)});
However this method just gives me an error in the text field which is supposed to give me the result.
Has anyone got some advice here?