Skip to content

Commit

Permalink
fix relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrhmanNile committed Sep 22, 2022
1 parent 8f90892 commit d1085f7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion freenlpc/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from freenlpc.freenlpc import FreeNlpc
from . import nlpcloudd as nlpcloud
from freenlpc.freenlpc import FreeNlpc
2 changes: 1 addition & 1 deletion freenlpc/freenlpc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from operator import itemgetter
from . import nlpcloudd as nlpcloud
import nlpcloudd as nlpcloud
import requests
from time import sleep

Expand Down
2 changes: 1 addition & 1 deletion freenlpc/nlpcloudd.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Client:
def __init__(self, model, token, gpu=False, lang=""):
self.headers = {
"Authorization": "Token " + token,
"User-Agent": "nlpcloud-python-client"
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4298.0 Safari/537.36"
}
if lang == "en":
lang = ""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

VERSION = '0.2.1'
VERSION = '0.2.2'
DESCRIPTION = 'A wrapper for nlpcloud free-tier services with no requests per minute limits.'
LONG_DESCRIPTION = """# freenlpc
a wrapper for nlpcloud free-tier.
Expand Down

0 comments on commit d1085f7

Please sign in to comment.