Spaces:
Runtime error
Runtime error
Commit
Β·
124b9b5
1
Parent(s):
02cc1fd
Update app.py
Browse files
app.py
CHANGED
|
@@ -156,7 +156,7 @@ if choose == "Inspect Content":
|
|
| 156 |
print('prediction_value',predictions)
|
| 157 |
if predictions[0]['Fake'] > 0.90:
|
| 158 |
# st.error(f"The Sample is spoof: \n Confidence {(prediction_value) }%", icon="π¨")
|
| 159 |
-
st.error(f"This text is AI generated "+str(predictions[0]['Fake']), icon="π¨")
|
| 160 |
|
| 161 |
else:
|
| 162 |
st.success(f"This text is real", icon="β
")
|
|
|
|
| 156 |
print('prediction_value',predictions)
|
| 157 |
if predictions[0]['Fake'] > 0.90:
|
| 158 |
# st.error(f"The Sample is spoof: \n Confidence {(prediction_value) }%", icon="π¨")
|
| 159 |
+
st.error(f"This text is AI generated with confidence: "+str(predictions[0]['Fake']), icon="π¨")
|
| 160 |
|
| 161 |
else:
|
| 162 |
st.success(f"This text is real", icon="β
")
|