Very cool blogpost!

#4
by clem HF staff - opened

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

CodeParrot org

Thanks @clem ! ๐Ÿค—

Great blog! I was thinking about a Feature (a button click) to create a HF Space app code (app.py for a gradio app) from a model in HF model Hub. So, given metadata about the task, dataset and model (text prompt about task+dataset+model) for a model on model Hub, a code generation model should run on button click and create the contents of app.py. Is this feasible/interesting?

CodeParrot org

Hi @smangrul , thank you for your comment and sorry about the late reply I just noticed your message. I did a few experiments and it seems like manual post processing of the generated code is required to have an app that functions. InCoder and CodeGen for instance generate code similar to what an app.py should look like given a good prompt but the code often has errors, for example it can use an argument that doesn't exist for gradio.Interface.load or the arguments are not specified like in the example below from CodeGen, probably there wasnโ€™t much code that includes Gradio apps in the training corpus of these models.

image.png

thanks for this

Sign up or log in to comment