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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-0.6B")
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
 
 
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(text, return_tensors="pt")
12
  outputs = model.generate(**inputs, max_new_tokens=100)
13
  return tokenizer.decode(outputs[0], skip_special_tokens=True)
14