Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,5 +20,5 @@ def classify(text,choice):
|
|
20 |
else:
|
21 |
return "Not Fake News"
|
22 |
|
23 |
-
GUI = gr.Interface(inputs = ['text',gr.radio(choices = [('Naive Bayes',1),'(Random Classifier',2)], label = "Model"
|
24 |
GUI.launch(debug = True)
|
|
|
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)
|