Spaces:
Running
Running
Dan Pro
commited on
Commit
·
0bd02be
1
Parent(s):
5012e27
Removal of api name to fix it
Browse files
app.py
CHANGED
|
@@ -30,14 +30,13 @@ def detect_ai_text(text):
|
|
| 30 |
"prediction": "AI Generated" if ai_prob > 0.5 else "Human Written"
|
| 31 |
}
|
| 32 |
|
| 33 |
-
# Create Gradio interface
|
| 34 |
iface = gr.Interface(
|
| 35 |
fn=detect_ai_text,
|
| 36 |
inputs=gr.Textbox(lines=10, placeholder="Enter text to analyze..."),
|
| 37 |
outputs=gr.JSON(label="Detection Results"),
|
| 38 |
title="AI Text Detector",
|
| 39 |
-
description="Detects whether text was written by a human or generated by AI"
|
| 40 |
-
api_name="detect"
|
| 41 |
)
|
| 42 |
|
| 43 |
if __name__ == "__main__":
|
|
|
|
| 30 |
"prediction": "AI Generated" if ai_prob > 0.5 else "Human Written"
|
| 31 |
}
|
| 32 |
|
| 33 |
+
# Create Gradio interface
|
| 34 |
iface = gr.Interface(
|
| 35 |
fn=detect_ai_text,
|
| 36 |
inputs=gr.Textbox(lines=10, placeholder="Enter text to analyze..."),
|
| 37 |
outputs=gr.JSON(label="Detection Results"),
|
| 38 |
title="AI Text Detector",
|
| 39 |
+
description="Detects whether text was written by a human or generated by AI"
|
|
|
|
| 40 |
)
|
| 41 |
|
| 42 |
if __name__ == "__main__":
|