"...git@developer.sourcefind.cn:chenpangpang/diffusers.git" did not exist on "0eb507f2af991b1f0b6c2ede5b20a994999e85d3"
Commit 845cecd0 authored by tink2123's avatar tink2123
Browse files

mv fasttext for requirements

parent b103b755
...@@ -23,7 +23,6 @@ import sys ...@@ -23,7 +23,6 @@ import sys
import six import six
import cv2 import cv2
import numpy as np import numpy as np
import fasttext
class DecodeImage(object): class DecodeImage(object):
...@@ -136,6 +135,7 @@ class ToCHWImage(object): ...@@ -136,6 +135,7 @@ class ToCHWImage(object):
class Fasttext(object): class Fasttext(object):
def __init__(self, path="None", **kwargs): def __init__(self, path="None", **kwargs):
import fasttext
self.fast_model = fasttext.load_model(path) self.fast_model = fasttext.load_model(path)
def __call__(self, data): def __call__(self, data):
......
...@@ -12,5 +12,4 @@ cython ...@@ -12,5 +12,4 @@ cython
lxml lxml
premailer premailer
openpyxl openpyxl
fasttext==0.9.1
paddlenlp>=2.2.1 paddlenlp>=2.2.1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment