Update app.py
Browse files
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(
|
| 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 |
|