You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import requests
|
|
from cppy.cp_util import *
|
|
|
|
url = 'http://127.0.0.1:5000/word_frequency'
|
|
data_list = extract_file_words(testfilepath)
|
|
data = {
|
|
'file': data_list
|
|
}
|
|
response = requests.post(url, json=data)
|
|
print(response.json()[:10])
|