Wootang01 commited on
Commit
1424717
·
1 Parent(s): eb5e7aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,6 +7,7 @@ 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
  examples = [
11
  ["Zoe Kwan is a 20-year old singer and songwriter who has taken Hong Kong’s music scene by storm."],
12
  ["What is this life for?"],
@@ -28,9 +29,9 @@ def complete_with_gpt(text):
28
 
29
  with gr.Blocks() as demo:
30
  with gr.Row():
31
- textbox = gr.Textbox(placeholder="Type here and press enter...", lines=8)
32
  with gr.Column():
33
- btn = gr.Button("Generate")
34
 
35
  btn.click(complete_with_gpt, textbox, textbox)
36
 
 
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."
11
  examples = [
12
  ["Zoe Kwan is a 20-year old singer and songwriter who has taken Hong Kong’s music scene by storm."],
13
  ["What is this life for?"],
 
29
 
30
  with gr.Blocks() as demo:
31
  with gr.Row():
32
+ textbox = gr.Textbox(placeholder=description3, lines=8)
33
  with gr.Column():
34
+ btn = gr.Button("Submit")
35
 
36
  btn.click(complete_with_gpt, textbox, textbox)
37