Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def classify(text,choice):
|
|
26 |
else:
|
27 |
return "Not Fake News"
|
28 |
GUI = gr.Interface(
|
29 |
-
inputs = ['text', gr.
|
30 |
outputs = ['text'],
|
31 |
fn = classify,
|
32 |
title = "Fake News Detection System"
|
|
|
26 |
else:
|
27 |
return "Not Fake News"
|
28 |
GUI = gr.Interface(
|
29 |
+
inputs = ['text', gr.Radio( options = [("Naive Bayes",1) , ("Random Forest",2) ] , value = 1 , label = "Model") ],
|
30 |
outputs = ['text'],
|
31 |
fn = classify,
|
32 |
title = "Fake News Detection System"
|