duwing commited on
Commit
7144b3e
ยท
verified ยท
1 Parent(s): d90cb9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -10,7 +10,7 @@ import requests
10
  from bs4 import BeautifulSoup
11
  import time
12
 
13
-
14
  PATH_t = './checkpoint-7500/'
15
  PATH = './checkpoint-18750/'
16
  SEQ_LEN = 128
@@ -123,10 +123,12 @@ def main():
123
  st.title("๋Œ“๊ธ€ ํ•„ํ„ฐ๋ง ์„œ๋น„์Šค")
124
 
125
  # URL ์ž…๋ ฅ ๋ฐ›๊ธฐ
126
- url = st.text_input("url์„ ์ž…๋ ฅํ•˜์„ธ์š”")
127
 
 
 
128
  if st.button("์Šคํฌ๋žฉ ์‹œ์ž‘"):
129
  if url:
 
130
  title, content, comments = get_comments(url)
131
 
132
  # ๊ฒฐ๊ณผ ํ‘œ์‹œ
 
10
  from bs4 import BeautifulSoup
11
  import time
12
 
13
+ st.query_prams['q'] = ''
14
  PATH_t = './checkpoint-7500/'
15
  PATH = './checkpoint-18750/'
16
  SEQ_LEN = 128
 
123
  st.title("๋Œ“๊ธ€ ํ•„ํ„ฐ๋ง ์„œ๋น„์Šค")
124
 
125
  # URL ์ž…๋ ฅ ๋ฐ›๊ธฐ
 
126
 
127
+ url = st.text_input("url์„ ์ž…๋ ฅํ•˜์„ธ์š”")
128
+ url = st.query_params['q']
129
  if st.button("์Šคํฌ๋žฉ ์‹œ์ž‘"):
130
  if url:
131
+ st.query_params['q'] = url
132
  title, content, comments = get_comments(url)
133
 
134
  # ๊ฒฐ๊ณผ ํ‘œ์‹œ