Spaces:
Runtime error
Runtime error
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() | |