Spaces:
showme
/
Runtime error

showme commited on
Commit
3128c09
·
verified ·
1 Parent(s): 6f4fc3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,8 +1,7 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
-
4
  # 加载模型
5
- sentiment_model = pipeline("text-classification", model="Hello-SimpleAI/chatgpt-detector-roberta")
6
 
7
  def predict(text):
8
  return sentiment_model(text)
 
1
  import gradio as gr
2
  from transformers import pipeline
 
3
  # 加载模型
4
+ sentiment_model = pipeline("text-classification", model="Hello-SimpleAI/chatgpt-detector-roberta") 
5
 
6
  def predict(text):
7
  return sentiment_model(text)