Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,9 @@ import os
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
auth_token = os.environ.get("access_token")
|
6 |
-
pipeline_en = pipeline(task="text-classification", model="Hello-SimpleAI/chatgpt-detector-
|
7 |
-
pipeline_zh = pipeline(task="text-classification", model="Hello-SimpleAI/chatgpt-detector-
|
8 |
|
9 |
|
10 |
|
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
# auth_token = os.environ.get("access_token")
|
6 |
+
pipeline_en = pipeline(task="text-classification", model="Hello-SimpleAI/chatgpt-detector-roberta")
|
7 |
+
pipeline_zh = pipeline(task="text-classification", model="Hello-SimpleAI/chatgpt-detector-roberta-chinese")
|
8 |
|
9 |
|
10 |
|