Wootang01 commited on
Commit
cb362de
·
1 Parent(s): fa6c1cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -4,7 +4,6 @@ from gradio.mix import Parallel
4
 
5
  #instantiate variables as strings
6
  title="Text Generators"
7
- description="Select a text generator from the tabs below."
8
  description1="This is the basic text generator all students were taught to code using an older, smaller language model. Input text, submit, and the text generator will generate one output text instance."
9
  description2="This is a more advanced text generator that many students were taught to code. Input text and the text generator generates three output text instances from three language models. Importantly, two of these language models were designed to process explicit instructions."
10
  description3="This is the most advanced text generator that a few students were taught to code. Input text and the text generator generates an output text instance. You can resubmit to include that new text as input text."
@@ -40,7 +39,7 @@ tab1 = gr.Interface.load("huggingface/gpt2", description=description1)
40
  tab2 = gr.Parallel(model1, model2, model3, inputs=gr.Textbox(lines=5, label="Input explicit or implicit instructions"), description=description2, examples=examples)
41
  tab3 = demo
42
 
43
- demo1 = gr.TabbedInterface([tab1, tab2, tab3], ["Level 1", "Level 3", "Level 5"], title=title, description=description)
44
 
45
  if __name__ == "__main__":
46
  demo1.launch(debug=True)
 
4
 
5
  #instantiate variables as strings
6
  title="Text Generators"
 
7
  description1="This is the basic text generator all students were taught to code using an older, smaller language model. Input text, submit, and the text generator will generate one output text instance."
8
  description2="This is a more advanced text generator that many students were taught to code. Input text and the text generator generates three output text instances from three language models. Importantly, two of these language models were designed to process explicit instructions."
9
  description3="This is the most advanced text generator that a few students were taught to code. Input text and the text generator generates an output text instance. You can resubmit to include that new text as input text."
 
39
  tab2 = gr.Parallel(model1, model2, model3, inputs=gr.Textbox(lines=5, label="Input explicit or implicit instructions"), description=description2, examples=examples)
40
  tab3 = demo
41
 
42
+ demo1 = gr.TabbedInterface([tab1, tab2, tab3], ["Level 1", "Level 3", "Level 5"], title=title)
43
 
44
  if __name__ == "__main__":
45
  demo1.launch(debug=True)