lcjln commited on
Commit
1f9f260
ยท
verified ยท
1 Parent(s): fe42b4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -9,7 +9,6 @@ st.write("VOD URL์„ ์ž…๋ ฅํ•˜๊ณ  ์ฑ„ํŒ… ๋ฐ์ดํ„ฐ๋ฅผ ํฌ๋กค๋งํ•ฉ๋‹ˆ๋‹ค.")
9
  # URL ์ž…๋ ฅ ๋ฐ›๊ธฐ
10
  vod_url = st.text_input("VOD URL ์ž…๋ ฅ")
11
 
12
-
13
  # ์ฑ„ํŒ… ํฌ๋กค๋ง ํ•จ์ˆ˜
14
  def crawl_chats(vod_url):
15
  # URL ์„ค์ •
@@ -92,13 +91,12 @@ def crawl_chats(vod_url):
92
  # ๊ฒฐ๊ณผ ๋ฐ˜ํ™˜
93
  return "\n".join(chat_logs)
94
 
95
-
96
  # ๋ฒ„ํŠผ์„ ๋ˆŒ๋ €์„ ๋•Œ ์ฑ„ํŒ… ํฌ๋กค๋ง ์‹œ์ž‘
97
  if st.button("ํฌ๋กค๋ง ์‹œ์ž‘"):
98
  if vod_url:
99
  chat_logs = crawl_chats(vod_url)
100
  st.text_area("์ฑ„ํŒ… ๋กœ๊ทธ", value=chat_logs, height=400)
101
-
102
  # ํŒŒ์ผ๋กœ ์ €์žฅ
103
  file_name = "chat_logs.txt"
104
  with open(file_name, "w") as file:
 
9
  # URL ์ž…๋ ฅ ๋ฐ›๊ธฐ
10
  vod_url = st.text_input("VOD URL ์ž…๋ ฅ")
11
 
 
12
  # ์ฑ„ํŒ… ํฌ๋กค๋ง ํ•จ์ˆ˜
13
  def crawl_chats(vod_url):
14
  # URL ์„ค์ •
 
91
  # ๊ฒฐ๊ณผ ๋ฐ˜ํ™˜
92
  return "\n".join(chat_logs)
93
 
 
94
  # ๋ฒ„ํŠผ์„ ๋ˆŒ๋ €์„ ๋•Œ ์ฑ„ํŒ… ํฌ๋กค๋ง ์‹œ์ž‘
95
  if st.button("ํฌ๋กค๋ง ์‹œ์ž‘"):
96
  if vod_url:
97
  chat_logs = crawl_chats(vod_url)
98
  st.text_area("์ฑ„ํŒ… ๋กœ๊ทธ", value=chat_logs, height=400)
99
+
100
  # ํŒŒ์ผ๋กœ ์ €์žฅ
101
  file_name = "chat_logs.txt"
102
  with open(file_name, "w") as file: