Spaces:
Runtime error
Runtime error
Initial commit
Browse files
app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
title = "GPT-J-6B Demo"
|
3 |
+
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."
|
4 |
+
article = "<p style='text-align: center'><a href='https://github.com/kingoflolz/mesh-transformer-jax' target='_blank'>GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model</a></p>"
|
5 |
+
examples = [
|
6 |
+
["Narrativa is an NLP/NLG company that"],
|
7 |
+
["from transformers import AutoTokenizer"],
|
8 |
+
["Narrativa's CTO, Alberto Moratilla and Javier (CSO) are"]
|
9 |
+
]
|
10 |
+
gr.Interface.load("huggingface/EleutherAI/gpt-j-6B", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
|
11 |
+
title=title, description=description, article=article, examples=examples, enable_queue=True).launch()
|