ByteBlaze commited on
Commit
74b882c
1 Parent(s): 1512feb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -19,6 +19,11 @@ def classify(text,choice):
19
  return "Fake News"
20
  else:
21
  return "Not Fake News"
22
-
 
 
 
 
 
23
  GUI = gr.Interface(inputs = ['text',gr.radio(choices = [('Naive Bayes',1),'(Random Classifier',2)], value = 1, label = "Model") ], outputs = ['text'], fn = classify, title = "Fake News Detection System")
24
  GUI.launch(debug = True)
 
19
  return "Fake News"
20
  else:
21
  return "Not Fake News"
22
+ GUI = gr.Interface(
23
+ inputs = ['text', gr.radio( options = [("Naive Bayes",1) , ("Random Forest",2) ] , value = 1 , label = "Model") ],
24
+ outputs = ['text'],
25
+ fn = classify,
26
+ title = "Fake News Detection System"
27
+ )
28
  GUI = gr.Interface(inputs = ['text',gr.radio(choices = [('Naive Bayes',1),'(Random Classifier',2)], value = 1, label = "Model") ], outputs = ['text'], fn = classify, title = "Fake News Detection System")
29
  GUI.launch(debug = True)