Spaces:
Runtime error
Runtime error
sagacious-satadru
commited on
Commit
•
c3e5b17
1
Parent(s):
16888d5
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
# Load the model from Hugging Face
|
4 |
model_name = "comment-toxicity-analyzer/toxicity_det"
|
5 |
api_key = "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"
|
6 |
-
interface = gr.load(model_name, src="spaces",
|
7 |
|
8 |
def score_comment(comment):
|
9 |
"""
|
|
|
3 |
# Load the model from Hugging Face
|
4 |
model_name = "comment-toxicity-analyzer/toxicity_det"
|
5 |
api_key = "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"
|
6 |
+
interface = gr.load(model_name, src="spaces", hf_api_key=api_key)
|
7 |
|
8 |
def score_comment(comment):
|
9 |
"""
|