Spaces:
Build error
Build error
| import gradio as gr | |
| from gradio import mix | |
| title = "Miniature" | |
| description = "Gradio Demo for a miniature with GPT. To use it, simply add your text, or click one of the examples to load them. Read more at the links below." | |
| examples = [ | |
| ['A kid is playing with'] | |
| ] | |
| io = gr.Interface.load("huggingface/keras-io/text-generation") | |
| def inference(text): | |
| return generator(text) | |
| gr.Interface( | |
| inference, | |
| [gr.inputs.Textbox(label="Input")], | |
| gr.outputs.Textbox(label="Output"), | |
| examples=examples, | |
| # article=article, | |
| title=title, | |
| description=description).launch(enable_queue=True, cache_examples=True) |