Spaces:
Runtime error
Runtime error
Commit
·
f61ca77
1
Parent(s):
f094173
ready1234
Browse files- tasks/text.py +5 -2
tasks/text.py
CHANGED
@@ -22,10 +22,10 @@ sys.path.append(os.path.abspath('model'))
|
|
22 |
|
23 |
|
24 |
print("### App Dir")
|
25 |
-
print(os.listdir("
|
26 |
print()
|
27 |
print("### Task Dir")
|
28 |
-
print(os.listdir("./"))
|
29 |
|
30 |
import random
|
31 |
|
@@ -85,6 +85,9 @@ async def evaluate_text(request: TextEvaluationRequest):
|
|
85 |
|
86 |
#get unknwown types
|
87 |
unknown = skops.io.get_untrusted_types(file = "tasks/model/tfidf_rf.skops")
|
|
|
|
|
|
|
88 |
|
89 |
#load model
|
90 |
model = model = load("model/tfidf_rf.skops", trusted = unknown)
|
|
|
22 |
|
23 |
|
24 |
print("### App Dir")
|
25 |
+
print(os.listdir("./"))
|
26 |
print()
|
27 |
print("### Task Dir")
|
28 |
+
print(os.listdir("./tasks"))
|
29 |
|
30 |
import random
|
31 |
|
|
|
85 |
|
86 |
#get unknwown types
|
87 |
unknown = skops.io.get_untrusted_types(file = "tasks/model/tfidf_rf.skops")
|
88 |
+
|
89 |
+
print("### Task Dir")
|
90 |
+
print(os.listdir("./tasks"))
|
91 |
|
92 |
#load model
|
93 |
model = model = load("model/tfidf_rf.skops", trusted = unknown)
|