Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -238,7 +238,7 @@ def compute_correlation(col1, col2):
|
|
| 238 |
if col1 in categorical_cols and col2 in categorical_cols:
|
| 239 |
confusion = pd.crosstab(c1, c2)
|
| 240 |
v = cramers_v(confusion)
|
| 241 |
-
return f"Cramér
|
| 242 |
|
| 243 |
# Case 3: keyword frequency vs numeric/categorical
|
| 244 |
# Convert col1 or col2 (if comma-separated) into frequency counts
|
|
@@ -268,9 +268,9 @@ def compute_correlation(col1, col2):
|
|
| 268 |
# ----------------------------------------------------
|
| 269 |
# Gradio UI
|
| 270 |
# ----------------------------------------------------
|
| 271 |
-
with gr.Blocks(title="
|
| 272 |
|
| 273 |
-
gr.Markdown("# 📊
|
| 274 |
with gr.Tab("ℹ️ About & Citation"):
|
| 275 |
refresh_btn = gr.Button("🔄 Refresh Data from Excel")
|
| 276 |
refresh_msg = gr.Textbox(label="Status", interactive=False)
|
|
|
|
| 238 |
if col1 in categorical_cols and col2 in categorical_cols:
|
| 239 |
confusion = pd.crosstab(c1, c2)
|
| 240 |
v = cramers_v(confusion)
|
| 241 |
+
return f"Cramér's V = {v:.4f}", confusion
|
| 242 |
|
| 243 |
# Case 3: keyword frequency vs numeric/categorical
|
| 244 |
# Convert col1 or col2 (if comma-separated) into frequency counts
|
|
|
|
| 268 |
# ----------------------------------------------------
|
| 269 |
# Gradio UI
|
| 270 |
# ----------------------------------------------------
|
| 271 |
+
with gr.Blocks(title="Padmavathi APP") as app:
|
| 272 |
|
| 273 |
+
gr.Markdown("# 📊 Padmavathi's SPMVV Data Analysis System \nUpload → Analyse → Export\n Developed by Dr. Padmavathi, Dept of Women Studies")
|
| 274 |
with gr.Tab("ℹ️ About & Citation"):
|
| 275 |
refresh_btn = gr.Button("🔄 Refresh Data from Excel")
|
| 276 |
refresh_msg = gr.Textbox(label="Status", interactive=False)
|