Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
# 测试文本模型
|
| 2 |
# import part
|
| 3 |
import streamlit as st
|
| 4 |
-
|
| 5 |
-
|
| 6 |
# pipe = pipeline("text-classification", model="distilbert-base-uncased")
|
| 7 |
# print(pipe("This is a test sentence."))
|
| 8 |
|
|
|
|
| 1 |
# 测试文本模型
|
| 2 |
# import part
|
| 3 |
import streamlit as st
|
| 4 |
+
from transformers import pipeline
|
| 5 |
+
import torch
|
| 6 |
# pipe = pipeline("text-classification", model="distilbert-base-uncased")
|
| 7 |
# print(pipe("This is a test sentence."))
|
| 8 |
|