Once an API key is obtained, the MakerSpace website suggests using curl (below) to obtain completions. I was wondering if someone had coded up a friendlier user experience – perhaps with the three boxes to fill in (priming, question, decorator) and a nicely rendered version of the markdown completion result?
curl
-H ‘Content-Type: application/json’
-d ‘{ “prompt”: { “text”: “Write a story about a magic backpack”} }’
“https://generativelanguage.googleapis.com/v1beta2/models/text-bison-001:generateText?key=YOUR_API_KEY”
Hi John,
I’m working on this as we speak!
My suggestion would be to take a look at Gradio (there is a course here on that).
1 Like