Wootang01 commited on
Commit
9342fd8
·
1 Parent(s): 3cce62f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from aitextgen import aitextgen
3
 
4
- ai = aitextgen(model="hivemind/gpt-j-6B-8bit")
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-J-6B-8bit",
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()