Spaces:
showme
/
Runtime error

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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ 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)
 
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)