Use Granite to generate Python code from text prompts.
This recipe demonstrates how to use Granite to generate Python code from text prompts.You will need a Replicate API token and a Hugging Face token to run this recipe in Colab. Instructions for obtaining these credentials can be found here.
Get started
Explore sample code in a GitHub repo
Try it out
Execute sample code in Colab
⌘I
Assistant
Responses are generated using AI and may contain mistakes.