Spaces:
Runtime error
Runtime error
Download app.py from Emkay/Asrix_Bot: direct link, hf CLI and curl.
- Browser
- Download file 939 Bytes
-
https://huggingface.co/spaces/Emkay/Asrix_Bot/resolve/main/app.py
- Command line
-
hf download hf://spaces/Emkay/Asrix_Bot/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Emkay/Asrix_Bot/resolve/main/app.py
939 Bytes
| import gradio as gr | |
| title = "GPT-J-6B" | |
| description = "Gradio Demo for GPT-J 6B, a transformer model trained \ | |
| using Ben Wang's Mesh Transformer JAX. 'GPT-J' refers to the class of \ | |
| model, while '6B' represents the number of trainable parameters. \ | |
| To use it, simply add your text, or click one of the examples to load them. \ | |
| I've used the API on this Space to deploy the GPT-J-6B model on a Telegram bot. \ | |
| Link to blog post below 👇" | |
| article ="" | |
| examples = [ | |
| ['Capital city of Malaysia is Kuala Lumpur,'], | |
| ["The Moon's orbit around Earth has"], | |
| ["The smooth Borealis basin in the Northern Hemisphere covers 40%"] | |
| ] | |
| gr.Interface.load("huggingface/togethercomputer/GPT-JT-6B-v1", | |
| inputs=gr.inputs.Textbox(lines=5, label="Input Text"), | |
| title=title,description=description, | |
| article=article, | |
| examples=examples, | |
| enable_queue=True).launch() |