code-gen / app.py
michaelhhl's picture
initial add app.py.
bff03f4
raw
history blame contribute delete
458 Bytes
import gradio as gr
description = "Code generation with GPT-2"
title = "Generate your Python code"
examples = [["# import random forest regressor from scikit-learn from sklearn.ensemble import RandomForestRegressor.# fit random forest model with 300 estimators on X, y:"]]
interface = gr.Interface.load("huggingface/michaelhhl/code-gen-accelerate",
description=description,
title = title,
examples=examples
)
interface.launch()