hashirlodhi commited on
Commit
7156c8e
·
verified ·
1 Parent(s): 51f65d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- # Choose your preferred model from OpenRouter
15
- MODEL_NAME = "openai/gpt-3.5-turbo" # Try "anthropic/claude-3-haiku" too
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. Answer quality is enforced to be 10/10."
 
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