Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
|
|
4 |
|
5 |
def predict_en(text):
|
6 |
res = model(text)[0]
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
auth_token = "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"
|
4 |
+
model = gr.Interface.load("models/Hello-SimpleAI/chatgpt-detector-roberta", api_key=auth_token)
|
5 |
|
6 |
def predict_en(text):
|
7 |
res = model(text)[0]
|