Spaces:
Runtime error
Runtime error
Rob Caamano
commited on
App 3.0
Browse files
app.py
CHANGED
|
@@ -46,13 +46,13 @@ if st.button("Submit", type="primary"):
|
|
| 46 |
|
| 47 |
if probability < 0.1:
|
| 48 |
st.write("This tweet is not toxic.")
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
|
|
|
| 46 |
|
| 47 |
if probability < 0.1:
|
| 48 |
st.write("This tweet is not toxic.")
|
| 49 |
+
|
| 50 |
+
df = pd.DataFrame(
|
| 51 |
+
{
|
| 52 |
+
"Tweet (portion)": [tweet_portion],
|
| 53 |
+
column_name: [label],
|
| 54 |
+
"Probability": [probability],
|
| 55 |
+
}
|
| 56 |
+
)
|
| 57 |
+
|
| 58 |
+
st.table(df)
|