Spaces:
Runtime error
Runtime error
added metrics controls
Browse files
app.py
CHANGED
@@ -51,15 +51,17 @@ with main_tab:
|
|
51 |
('Yes', 'No', 'Dont Know'), index=2)
|
52 |
with col2:
|
53 |
#st.markdown("Touch time (manual) in mins")
|
54 |
-
man_tt = st.number_input('Touch time (manual) in mins')
|
55 |
#st.markdown("Touch time (with bot) in mins")
|
56 |
-
bot_tt = st.number_input('Touch time (with bot) in mins')
|
57 |
|
58 |
# Search button
|
59 |
if st.button("Search"):
|
60 |
names = names_txt.split(",")
|
|
|
|
|
61 |
# Perform the search and display the results
|
62 |
-
if names and
|
63 |
search_results = ""
|
64 |
for name in names:
|
65 |
#print("trying for name {} \n".format(name))
|
@@ -74,7 +76,7 @@ with main_tab:
|
|
74 |
except:
|
75 |
print ("Completed processing with S3 write error for {} names: {} at {} \n".format(len(names),names_txt, str(date_time)))
|
76 |
else:
|
77 |
-
st.error("Please enter
|
78 |
|
79 |
with help_tab:
|
80 |
st.title("FAQ")
|
|
|
51 |
('Yes', 'No', 'Dont Know'), index=2)
|
52 |
with col2:
|
53 |
#st.markdown("Touch time (manual) in mins")
|
54 |
+
man_tt = st.number_input('Touch time (manual) in mins', value=0, step=1)
|
55 |
#st.markdown("Touch time (with bot) in mins")
|
56 |
+
bot_tt = st.number_input('Touch time (with bot) in mins', value=0, step=1)
|
57 |
|
58 |
# Search button
|
59 |
if st.button("Search"):
|
60 |
names = names_txt.split(",")
|
61 |
+
print(len(names))
|
62 |
+
metrics_ent = (adv_nw != "Dont Know") and (man_tt > 0) and (bot_tt > 0)
|
63 |
# Perform the search and display the results
|
64 |
+
if names and metrics_ent:
|
65 |
search_results = ""
|
66 |
for name in names:
|
67 |
#print("trying for name {} \n".format(name))
|
|
|
76 |
except:
|
77 |
print ("Completed processing with S3 write error for {} names: {} at {} \n".format(len(names),names_txt, str(date_time)))
|
78 |
else:
|
79 |
+
st.error("Please enter party name, adverse news selection (Yes or No) and Touch Time before searching.")
|
80 |
|
81 |
with help_tab:
|
82 |
st.title("FAQ")
|