ando55 commited on
Commit
4295a5f
ยท
1 Parent(s): 208a265

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -11
app.py CHANGED
@@ -87,6 +87,12 @@ with st.form(key="my_form"):
87
  doc = st.text_area(
88
  "Paste your text below",
89
  height=510,
 
 
 
 
 
 
90
  )
91
 
92
  submit_button = st.form_submit_button(label="๐Ÿ‘ Go to split!")
@@ -98,30 +104,27 @@ if not submit_button:
98
  keywords = run_segbot.generate(doc, model, fm, index, split_method)
99
 
100
 
101
- st.markdown("## ๐ŸŽˆ Check & download results")
102
 
103
  st.header("")
104
 
105
 
106
  cs, c1, c2, c3, cLast = st.columns([2, 1.5, 1.5, 1.5, 2])
107
 
108
- with c1:
109
- CSVButton2 = download_button(keywords, "Data.csv", "๐Ÿ“ฅ Download (.csv)")
110
- with c2:
111
- CSVButton2 = download_button(keywords, "Data.txt", "๐Ÿ“ฅ Download (.txt)")
112
- with c3:
113
- CSVButton2 = download_button(keywords, "Data.json", "๐Ÿ“ฅ Download (.json)")
114
-
115
  st.header("")
116
 
117
- #df = DataFrame(keywords, columns=["Keyword/Keyphrase", "Relevancy"])
118
  df = DataFrame(keywords)
119
  df.index += 1
120
  df.columns = ['Segment']
121
  print(df)
122
- # Add styling
123
 
124
- #c1, c2, c3 = st.columns([1, 3, 1])
 
 
 
 
 
 
125
 
126
  #with c2:
127
  st.table(df)
 
87
  doc = st.text_area(
88
  "Paste your text below",
89
  height=510,
90
+ placeholder="""
91
+ ใ‚ฐใƒฉใƒ ๆŸ“่‰ฒใ™ใ‚‹ใ‚‚ๆ˜Žใ‚‰ใ‹ใช่ŒใŒ่ฆ‹ใคใ‹ใ‚‰ใšใ€ ้ซ„ๆถฒๅŸน้คŠใงใ‚‚ๅ„ชไฝใช่ŒใฏๅŸน้คŠใ•ใ‚Œใชใ‹ใฃใŸใ€‚
92
+ ็ดฐ่Œๆ€ง้ซ„่†œ็‚Žใซๅฏพใ™ใ‚‹ใ‚ฐใƒฉใƒ ๆŸ“่‰ฒใฎๆ„Ÿๅบฆใฏ60%็จ‹ๅบฆใงใ‚ใ‚Šใ€ๅŸน้คŠใซ้–ขใ—ใฆใ‚‚ๆ„Ÿๅบฆใฏ้ซ˜ใใชใ„ใ€‚
93
+ ใพใŸ้ซ„ๆถฒไธญใฎ็ณ–ใฏใ‚‚ใ†ๅฐ‘ใ—ๆธ›ใ‚‹ใฎใงใฏใชใ„ใ ใ‚ใ†ใ‹ใ€‚็ขบๅฎš่จบๆ–ญใฏใคใ‹ใชใ„ใ‚‚ใฎใฎใ€ๆœ€ใ‚‚็–‘ใ‚ใ—ใ„็–พๆ‚ฃใงใ‚ใฃใŸใ€‚
94
+ ่ตทๅ› ่ŒใฏMRSA,่…ธๅ†…็ดฐ่Œ็ญ‰ใ‚’ๅบƒๅŸŸใซใ‚ซใƒใƒผใ™ใ‚‹ใŸใ‚ใƒใƒณใ‚ณใƒžใ‚คใ‚ทใƒณ,ใƒกใƒญใƒšใƒใƒ (้ซ„่†œ็‚Ždose)ใจใ—ใŸใ€‚
95
+ """
96
  )
97
 
98
  submit_button = st.form_submit_button(label="๐Ÿ‘ Go to split!")
 
104
  keywords = run_segbot.generate(doc, model, fm, index, split_method)
105
 
106
 
107
+ st.markdown("## Results")
108
 
109
  st.header("")
110
 
111
 
112
  cs, c1, c2, c3, cLast = st.columns([2, 1.5, 1.5, 1.5, 2])
113
 
 
 
 
 
 
 
 
114
  st.header("")
115
 
 
116
  df = DataFrame(keywords)
117
  df.index += 1
118
  df.columns = ['Segment']
119
  print(df)
 
120
 
121
+
122
+ with c1:
123
+ CSVButton2 = download_button(keywords, "Data.csv", "๐Ÿ“ฅ Download (.csv)")
124
+ with c2:
125
+ CSVButton2 = download_button(keywords, "Data.txt", "๐Ÿ“ฅ Download (.txt)")
126
+ with c3:
127
+ CSVButton2 = download_button(keywords, "Data.json", "๐Ÿ“ฅ Download (.json)")
128
 
129
  #with c2:
130
  st.table(df)