Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,8 +11,8 @@ if not OPENROUTER_API_KEY:
|
|
| 11 |
# OpenRouter API endpoint
|
| 12 |
API_URL = "https://openrouter.ai/api/v1/chat/completions"
|
| 13 |
|
| 14 |
-
#
|
| 15 |
-
MODEL_NAME = "
|
| 16 |
|
| 17 |
def classify_text(text):
|
| 18 |
if not text.strip():
|
|
@@ -79,8 +79,9 @@ iface = gr.Interface(
|
|
| 79 |
fn=classify_text,
|
| 80 |
inputs=gr.Textbox(lines=5, placeholder="Paste text to classify...", label="Text Input"),
|
| 81 |
outputs=gr.Textbox(label="Classification Result"),
|
| 82 |
-
title="🤖 AI vs Human Text Classifier",
|
| 83 |
-
description="Detect if your text is AI-generated or Human-written using OpenRouter API.\nMake sure OPENROUTER_API_KEY is set in your environment.
|
|
|
|
| 84 |
)
|
| 85 |
|
| 86 |
# Launch the Gradio app
|
|
|
|
| 11 |
# OpenRouter API endpoint
|
| 12 |
API_URL = "https://openrouter.ai/api/v1/chat/completions"
|
| 13 |
|
| 14 |
+
# Using the specified Qwen model
|
| 15 |
+
MODEL_NAME = "qwen/qwen3-235b-a22b-07-25:free"
|
| 16 |
|
| 17 |
def classify_text(text):
|
| 18 |
if not text.strip():
|
|
|
|
| 79 |
fn=classify_text,
|
| 80 |
inputs=gr.Textbox(lines=5, placeholder="Paste text to classify...", label="Text Input"),
|
| 81 |
outputs=gr.Textbox(label="Classification Result"),
|
| 82 |
+
title="🤖 AI vs Human Text Classifier (Qwen)",
|
| 83 |
+
description="Detect if your text is AI-generated or Human-written using Qwen model via OpenRouter API.\nMake sure OPENROUTER_API_KEY is set in your environment.",
|
| 84 |
+
allow_flagging="never"
|
| 85 |
)
|
| 86 |
|
| 87 |
# Launch the Gradio app
|