JUNGU commited on
Commit
518ef36
ยท
verified ยท
1 Parent(s): 0b3b25a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -42,6 +42,9 @@ def generate_living_record(data):
42
  )
43
  return response.choices[0].message.content
44
 
 
 
 
45
  # Streamlit ์•ฑ ๊ตฌ์„ฑ
46
  st.title("์ƒํ™œ๊ธฐ๋ก๋ถ€ ์ƒ์„ฑ ์„œ๋น„์Šค")
47
  st.write("๊ธฐ๋ก ์ž๋ฃŒ๊ฐ€ ๋‹ด๊ธด CSVํŒŒ์ผ ์—…๋กœ๋“œ, ์ง์ ‘ ๊ธฐ๋ก์„ ์ž…๋ ฅ, ํ‚ค์›Œ๋“œ๋ฅผ ์„ ํƒํ•˜์—ฌ ์ƒํ™œ๊ธฐ๋ก๋ถ€ ์ž‘์„ฑ์— ํ•„์š”ํ•œ ๊ด€์ฐฐ ๊ฒฐ๊ณผ๋ฅผ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.")
 
42
  )
43
  return response.choices[0].message.content
44
 
45
+ def clear_text(key):
46
+ st.session_state[key] = ""
47
+
48
  # Streamlit ์•ฑ ๊ตฌ์„ฑ
49
  st.title("์ƒํ™œ๊ธฐ๋ก๋ถ€ ์ƒ์„ฑ ์„œ๋น„์Šค")
50
  st.write("๊ธฐ๋ก ์ž๋ฃŒ๊ฐ€ ๋‹ด๊ธด CSVํŒŒ์ผ ์—…๋กœ๋“œ, ์ง์ ‘ ๊ธฐ๋ก์„ ์ž…๋ ฅ, ํ‚ค์›Œ๋“œ๋ฅผ ์„ ํƒํ•˜์—ฌ ์ƒํ™œ๊ธฐ๋ก๋ถ€ ์ž‘์„ฑ์— ํ•„์š”ํ•œ ๊ด€์ฐฐ ๊ฒฐ๊ณผ๋ฅผ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.")