mxiean commited on
Commit
956415d
·
verified ·
1 Parent(s): 592816c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,5 +1,8 @@
1
  # 测试文本模型
 
 
2
  from transformers import pipeline
 
3
  pipe = pipeline("text-classification", model="distilbert-base-uncased")
4
  print(pipe("This is a test sentence."))
5
 
 
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