Wootang01 commited on
Commit
72d3f9e
·
1 Parent(s): f985158

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,7 +2,7 @@ from aitextgen import aitextgen
2
  import gradio as gr
3
 
4
 
5
- ai=aitextgen(model='EleutherAI/gpt-neo-2.7B',to_gpu=False) # EleutherAI/gpt-neo-2.7B EleutherAI/gpt-neo-1.3B
6
 
7
  def ai_text(Input):
8
  generated_text = ai.generate_one(max_length = 500, prompt = Input, no_repeat_ngram_size = 3) #repetition_penalty = 1.9)
@@ -10,8 +10,8 @@ def ai_text(Input):
10
  return generated_text
11
 
12
 
13
- title_ = "Text Generator GPT-Neo-2.7B"
14
- description_ = " Enter one or more sentences and it will generate a 500 words blog 🤓"
15
  output_text = gr.outputs.Textbox()
16
  iface=gr.Interface(ai_text,"textbox", output_text, title=title_,description=description_)#.launch()
17
  iface.launch()
 
2
  import gradio as gr
3
 
4
 
5
+ ai=aitextgen(model='EleutherAI/gpt-neo-125M',to_gpu=False) # EleutherAI/gpt-neo-2.7B EleutherAI/gpt-neo-1.3B
6
 
7
  def ai_text(Input):
8
  generated_text = ai.generate_one(max_length = 500, prompt = Input, no_repeat_ngram_size = 3) #repetition_penalty = 1.9)
 
10
  return generated_text
11
 
12
 
13
+ title_ = "Text Generator GPT-Neo-125M"
14
+ description_ = "Kindly input text, submit, and the computer will predict subsequent words for your text input."
15
  output_text = gr.outputs.Textbox()
16
  iface=gr.Interface(ai_text,"textbox", output_text, title=title_,description=description_)#.launch()
17
  iface.launch()