Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from aitextgen import aitextgen
|
3 |
|
4 |
-
ai = aitextgen(model="
|
5 |
|
6 |
def ai_text(inp):
|
7 |
generated_text = ai.generate_one(max_length=100, prompt = inp, no_repeat_ngram_size=3)
|
@@ -15,5 +15,5 @@ examples = [
|
|
15 |
]
|
16 |
|
17 |
output_text = gr.outputs.Textbox()
|
18 |
-
gr.Interface(ai_text,"textbox", output_text, title="Text Generator GPT-
|
19 |
description="Copy or type text. Submit and the machine will generate text.", examples=examples).launch()
|
|
|
1 |
import gradio as gr
|
2 |
from aitextgen import aitextgen
|
3 |
|
4 |
+
ai = aitextgen(model="EleutherAI/gpt-neo-2.7B")
|
5 |
|
6 |
def ai_text(inp):
|
7 |
generated_text = ai.generate_one(max_length=100, prompt = inp, no_repeat_ngram_size=3)
|
|
|
15 |
]
|
16 |
|
17 |
output_text = gr.outputs.Textbox()
|
18 |
+
gr.Interface(ai_text,"textbox", output_text, title="Text Generator GPT-NEO-2.7B",
|
19 |
description="Copy or type text. Submit and the machine will generate text.", examples=examples).launch()
|