Spaces:
showme
/
Runtime error

showme commited on
Commit
08c2de9
·
verified ·
1 Parent(s): 3128c09

Update app.py

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