Spaces:
Runtime error
Runtime error
seriouspark
commited on
Commit
β’
f1b169c
1
Parent(s):
8c1187a
make moogeul_ver2
Browse files
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
|
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 |
|