seriouspark commited on
Commit
f1b169c
β€’
1 Parent(s): 8c1187a

make moogeul_ver2

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -232,7 +232,7 @@ def all_process(origin_essay, nickname):
232
  def get_similar_vocab(message):
233
  #print(re.findall('[κ°€-힣]+',message))
234
  if (len(message) > 0) & (len(re.findall('[κ°€-힣]+',message))>0):
235
- vocab =γ…Žγ…‘γ…… message
236
  all_dict_url = f"https://dict.naver.com/search.dict?dicQuery={vocab}&query={vocab}&target=dic&ie=utf8&query_utf=&isOnlyViewEE="
237
  response = requests.get(all_dict_url)
238
 
@@ -354,7 +354,8 @@ def run_all(message, history):
354
  elif message.find('λΆ„μ„μ‹œμž‘')>=0:
355
  with open(f"./result/{nickname}/contents.txt",'r') as f:
356
  orign_essay = f.read()
357
- all_process(orign_essay, nickname)
 
358
  else:
359
  return 'μ²˜μŒλΆ€ν„° μ‹œμž‘ν•΄μ£Όμ„Έμš”'
360
 
 
232
  def get_similar_vocab(message):
233
  #print(re.findall('[κ°€-힣]+',message))
234
  if (len(message) > 0) & (len(re.findall('[κ°€-힣]+',message))>0):
235
+ vocab = message
236
  all_dict_url = f"https://dict.naver.com/search.dict?dicQuery={vocab}&query={vocab}&target=dic&ie=utf8&query_utf=&isOnlyViewEE="
237
  response = requests.get(all_dict_url)
238
 
 
354
  elif message.find('λΆ„μ„μ‹œμž‘')>=0:
355
  with open(f"./result/{nickname}/contents.txt",'r') as f:
356
  orign_essay = f.read()
357
+ review1 = all_process(orign_essay, nickname)
358
+ return review1
359
  else:
360
  return 'μ²˜μŒλΆ€ν„° μ‹œμž‘ν•΄μ£Όμ„Έμš”'
361