0xhimzel commited on
Commit
cc4e73d
·
1 Parent(s): 0d2fef3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
 
3
- model = gr.Interface.load("models/Hello-SimpleAI/chatgpt-detector-roberta")
 
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]