Lord-Raven
commited on
Commit
·
33eeaeb
1
Parent(s):
71828e8
Swapping to ONNX.
Browse files
app.py
CHANGED
@@ -18,9 +18,7 @@ classifier = pipeline(
|
|
18 |
)
|
19 |
|
20 |
def predict(text):
|
21 |
-
|
22 |
-
print(f"{result}")
|
23 |
-
return result
|
24 |
|
25 |
demo = gr.Interface(
|
26 |
fn = predict,
|
|
|
18 |
)
|
19 |
|
20 |
def predict(text):
|
21 |
+
return classifier(text)
|
|
|
|
|
22 |
|
23 |
demo = gr.Interface(
|
24 |
fn = predict,
|