Spaces:
Running
Running
poemsforaphrodite
commited on
Commit
•
395f542
1
Parent(s):
36ebc7b
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,6 @@ import os
|
|
5 |
|
6 |
# Related third-party imports
|
7 |
import streamlit as st
|
8 |
-
from streamlit_elements import elements, mui, html
|
9 |
from google_auth_oauthlib.flow import Flow
|
10 |
from googleapiclient.discovery import build
|
11 |
from dotenv import load_dotenv
|
@@ -490,7 +489,6 @@ def show_tabular_data(df, co):
|
|
490 |
if pd.isna(row['relevancy_score']) or row['relevancy_score'] == 0:
|
491 |
if cols[6].button("Calculate", key=f"calc_{index}"):
|
492 |
with st.spinner('Calculating...'):
|
493 |
-
elements.mui.CircularProgress(size=20)
|
494 |
score = calculate_single_relevancy(row)
|
495 |
df.at[index, 'relevancy_score'] = score
|
496 |
st.experimental_rerun()
|
@@ -502,7 +500,6 @@ def show_tabular_data(df, co):
|
|
502 |
if competitor_button:
|
503 |
st.write(f"Competitor Analysis for: {row['query']}")
|
504 |
with st.spinner('Analyzing competitors...'):
|
505 |
-
elements.mui.CircularProgress(size=20)
|
506 |
results_df = analyze_competitors(row, co)
|
507 |
|
508 |
# Sort the results by relevancy score in descending order
|
|
|
5 |
|
6 |
# Related third-party imports
|
7 |
import streamlit as st
|
|
|
8 |
from google_auth_oauthlib.flow import Flow
|
9 |
from googleapiclient.discovery import build
|
10 |
from dotenv import load_dotenv
|
|
|
489 |
if pd.isna(row['relevancy_score']) or row['relevancy_score'] == 0:
|
490 |
if cols[6].button("Calculate", key=f"calc_{index}"):
|
491 |
with st.spinner('Calculating...'):
|
|
|
492 |
score = calculate_single_relevancy(row)
|
493 |
df.at[index, 'relevancy_score'] = score
|
494 |
st.experimental_rerun()
|
|
|
500 |
if competitor_button:
|
501 |
st.write(f"Competitor Analysis for: {row['query']}")
|
502 |
with st.spinner('Analyzing competitors...'):
|
|
|
503 |
results_df = analyze_competitors(row, co)
|
504 |
|
505 |
# Sort the results by relevancy score in descending order
|