JoydeepC commited on
Commit
73b9118
·
verified ·
1 Parent(s): f00c24b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,7 +7,8 @@ tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-0.6B")
7
 
8
  # Define the prediction function
9
  def predict(text):
10
- inputs = tokenizer(text + " Is it false or true? Fact check it and provide the supporting reason.", return_tensors="pt")
 
11
  outputs = model.generate(**inputs, max_new_tokens=100)
12
  return tokenizer.decode(outputs[0], skip_special_tokens=True)
13
 
 
7
 
8
  # Define the prediction function
9
  def predict(text):
10
+ app = text + " Is it false or true? Fact check it and provide the supporting reason."
11
+ inputs = tokenizer(app, return_tensors="pt")
12
  outputs = model.generate(**inputs, max_new_tokens=100)
13
  return tokenizer.decode(outputs[0], skip_special_tokens=True)
14