nichaphat commited on
Commit
21c4bfb
·
1 Parent(s): b50e966

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -7,15 +7,14 @@ text_generator = pipeline("text-generation",model="BertGenerationDecoder")
7
 
8
  def main():
9
  st.title("Text-generation")
10
-
11
- st.form("text_field"):
12
- widget:
13
  - text: "Don't cry,mylove. You will be my sweetheart foever and"
14
  example_title: "Example1"
15
  - text: "I hate you,please dissappear from my life and"
16
  example_title="Example2"
17
  - text:"I will waiting for you no matter what and I"
18
  example_title="Example3"
 
19
  text = st.text_area('enter your text:')
20
  # clicked==True only when the button is clicked
21
  clicked = st.form_submit_button("Generate")
 
7
 
8
  def main():
9
  st.title("Text-generation")
10
+ widget:
 
 
11
  - text: "Don't cry,mylove. You will be my sweetheart foever and"
12
  example_title: "Example1"
13
  - text: "I hate you,please dissappear from my life and"
14
  example_title="Example2"
15
  - text:"I will waiting for you no matter what and I"
16
  example_title="Example3"
17
+ st.form("text_field"):
18
  text = st.text_area('enter your text:')
19
  # clicked==True only when the button is clicked
20
  clicked = st.form_submit_button("Generate")