Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,4 @@ def predict_fake_news(text):
|
|
25 |
input_text = gr.Textbox(lines=7, label="Paste the news article here", placeholder="Example: Scientists have discovered a new cure for cancer.")
|
26 |
output_graph = gr.Image(label="Prediction Confidence")
|
27 |
|
28 |
-
|
29 |
-
["Aliens have landed in New York City!", "Fake"],
|
30 |
-
["Global warming effects becoming more severe.", "Real"]]
|
31 |
-
|
32 |
-
gr.Interface(predict_fake_news, inputs=input_text, outputs=output_graph, title="Real/Fake News Detector", theme="soft", examples=examples).launch()
|
|
|
25 |
input_text = gr.Textbox(lines=7, label="Paste the news article here", placeholder="Example: Scientists have discovered a new cure for cancer.")
|
26 |
output_graph = gr.Image(label="Prediction Confidence")
|
27 |
|
28 |
+
gr.Interface(predict_fake_news, inputs=input_text, outputs=output_graph, title="Real/Fake News Detector", theme="soft").launch()
|
|
|
|
|
|
|
|