Kvikontent commited on
Commit
1025a63
·
verified ·
1 Parent(s): 90ac221

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
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
- examples = [["New study shows coffee may prevent heart disease.", "Real"],
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()