Spaces:
Runtime error
Runtime error
Update app.py
Browse filesadded Medium post link for details on fine tuning and tests
app.py
CHANGED
@@ -45,10 +45,11 @@ def tweet_detect(text):
|
|
45 |
gradio_ui = gr.Interface(
|
46 |
fn=tweet_detect,
|
47 |
title="Detect Fake Tweets",
|
48 |
-
description="Enter a tweet and see if
|
49 |
inputs=gr.inputs.Textbox(lines=10, label="Paste tweet text here [English Only]"),
|
50 |
outputs=gr.outputs.Label(type="auto", label="Prediction"),
|
51 |
interpretation="shap",
|
|
|
52 |
enable_queue=True
|
53 |
)
|
54 |
|
|
|
45 |
gradio_ui = gr.Interface(
|
46 |
fn=tweet_detect,
|
47 |
title="Detect Fake Tweets",
|
48 |
+
description="Enter a tweet and see if a Distilbert model can identify if it was written by state-backed trolls. DISCLAIMER: While the model was fine tuned on 100k real and troll tweets, and achieved high accuracy in my tests, its performance drops significantly against the day-to-day barrage of content on Twitter. As such, this app is intended as an example for understanding the limits of AI/ML in highly complex problems like fake media detection, and not as a final arbiter of whether someone's tweet is real or not.",
|
49 |
inputs=gr.inputs.Textbox(lines=10, label="Paste tweet text here [English Only]"),
|
50 |
outputs=gr.outputs.Label(type="auto", label="Prediction"),
|
51 |
interpretation="shap",
|
52 |
+
article="Details of the fine tuning and tests are in this Medium post: https://bit.ly/3tueP36",
|
53 |
enable_queue=True
|
54 |
)
|
55 |
|