Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -675,12 +675,12 @@ with tab1:
|
|
| 675 |
g1, g2, g3 = st.columns(3)
|
| 676 |
with g1:
|
| 677 |
fake_prob = probs_list[0] * 100 if len(probs_list) > 0 else conf
|
| 678 |
-
st.plotly_chart(gauge_chart(fake_prob, "FAKE PROB", "#ef4444"),
|
| 679 |
with g2:
|
| 680 |
real_prob = probs_list[1] * 100 if len(probs_list) > 1 else (100 - conf)
|
| 681 |
-
st.plotly_chart(gauge_chart(real_prob, "REAL PROB", "#10b981"),
|
| 682 |
with g3:
|
| 683 |
-
st.plotly_chart(gauge_chart(manip, "MANIPULATION", "#f59e0b"),
|
| 684 |
|
| 685 |
# ββ Metrics ββ
|
| 686 |
st.markdown(f"""
|
|
@@ -782,7 +782,7 @@ with tab2:
|
|
| 782 |
|
| 783 |
if uploaded:
|
| 784 |
img = Image.open(uploaded)
|
| 785 |
-
st.image(img, caption="Uploaded Image",
|
| 786 |
|
| 787 |
# Image metadata
|
| 788 |
w, h = img.size
|
|
@@ -833,9 +833,9 @@ with tab2:
|
|
| 833 |
real_score = 100 - ai_score
|
| 834 |
g1, g2 = st.columns(2)
|
| 835 |
with g1:
|
| 836 |
-
st.plotly_chart(gauge_chart(ai_score, "AI PROBABILITY", "#ef4444"),
|
| 837 |
with g2:
|
| 838 |
-
st.plotly_chart(gauge_chart(real_score, "REAL PROBABILITY", "#10b981"),
|
| 839 |
|
| 840 |
# Confidence bar
|
| 841 |
fig_bar = bar_chart(
|
|
@@ -845,7 +845,7 @@ with tab2:
|
|
| 845 |
"#10b981" if real_score >= ai_score else "#475569"]
|
| 846 |
)
|
| 847 |
st.markdown('<div class="card"><div class="card-label">π Score Breakdown</div>', unsafe_allow_html=True)
|
| 848 |
-
st.plotly_chart(fig_bar,
|
| 849 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 850 |
|
| 851 |
# Summary
|
|
|
|
| 675 |
g1, g2, g3 = st.columns(3)
|
| 676 |
with g1:
|
| 677 |
fake_prob = probs_list[0] * 100 if len(probs_list) > 0 else conf
|
| 678 |
+
st.plotly_chart(gauge_chart(fake_prob, "FAKE PROB", "#ef4444"), use_column_width=True)
|
| 679 |
with g2:
|
| 680 |
real_prob = probs_list[1] * 100 if len(probs_list) > 1 else (100 - conf)
|
| 681 |
+
st.plotly_chart(gauge_chart(real_prob, "REAL PROB", "#10b981"), use_column_width=True)
|
| 682 |
with g3:
|
| 683 |
+
st.plotly_chart(gauge_chart(manip, "MANIPULATION", "#f59e0b"), use_column_width=True)
|
| 684 |
|
| 685 |
# ββ Metrics ββ
|
| 686 |
st.markdown(f"""
|
|
|
|
| 782 |
|
| 783 |
if uploaded:
|
| 784 |
img = Image.open(uploaded)
|
| 785 |
+
st.image(img, caption="Uploaded Image", use_column_width=True)
|
| 786 |
|
| 787 |
# Image metadata
|
| 788 |
w, h = img.size
|
|
|
|
| 833 |
real_score = 100 - ai_score
|
| 834 |
g1, g2 = st.columns(2)
|
| 835 |
with g1:
|
| 836 |
+
st.plotly_chart(gauge_chart(ai_score, "AI PROBABILITY", "#ef4444"), use_column_width=True)
|
| 837 |
with g2:
|
| 838 |
+
st.plotly_chart(gauge_chart(real_score, "REAL PROBABILITY", "#10b981"), use_column_width=True)
|
| 839 |
|
| 840 |
# Confidence bar
|
| 841 |
fig_bar = bar_chart(
|
|
|
|
| 845 |
"#10b981" if real_score >= ai_score else "#475569"]
|
| 846 |
)
|
| 847 |
st.markdown('<div class="card"><div class="card-label">π Score Breakdown</div>', unsafe_allow_html=True)
|
| 848 |
+
st.plotly_chart(fig_bar, use_column_width=True)
|
| 849 |
st.markdown('</div>', unsafe_allow_html=True)
|
| 850 |
|
| 851 |
# Summary
|