Skip to content

Commit

Permalink
Merge pull request #42 from Jumitti/beta
Browse files Browse the repository at this point in the history
Beta
  • Loading branch information
Jumitti authored Nov 10, 2023
2 parents 8a8eda7 + 74202fd commit d6164f0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
6 changes: 3 additions & 3 deletions TFinder-v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,14 @@
unique_users = st.secrets['unique_users']
st.sidebar.markdown(f"Total connections 👨🏼‍💻: {int(views) + int(previous_views)}")
st.sidebar.markdown(f"Unique users 👥: {unique_users}")
st.session_state["LOCAL"] = False
st.session_state["LOCAL"] = 'False'

except KeyError:
st.session_state["LOCAL"] = True
st.session_state["LOCAL"] = "True"
st.sidebar.markdown(f"TFinder Local Version")

except FileNotFoundError:
st.session_state["LOCAL"] = True
st.session_state["LOCAL"] = "True"
st.sidebar.markdown(f"TFinder Local Version")

modal = Modal(key="TFinder Key", title="Disclaimers - Welcome to TFinder", padding=50, max_width=900)
Expand Down
20 changes: 6 additions & 14 deletions navigation/aio.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@

import datetime
import io
import smtplib
import re
import time
import smtplib
from email import encoders
from email.mime.base import MIMEBase
from email.mime.image import MIMEImage
Expand All @@ -31,22 +30,15 @@

import altair as alt
import pandas as pd
import streamlit as st

import plotly.express as px

from stqdm import stqdm

from tfinder import IMO
from tfinder import NCBIdna
import requests
import streamlit as st
from bs4 import BeautifulSoup
from stqdm import stqdm

from streamlit_searchbox import st_searchbox

import os
import string
import pickle
from tfinder import IMO
from tfinder import NCBIdna


def search_species_at_NCBI(query_species_name):
Expand Down Expand Up @@ -837,7 +829,7 @@ def aio_page():
st.download_button(label="💾 Download table (.csv)", data=csv_file,
file_name=f"Results_TFinder_{current_date_time}.csv", mime="text/csv")

if st.session_state["LOCAL"] == 'True':
if st.session_state["LOCAL"] == "False":
email_receiver = st.text_input('Send results by email ✉',
value='', placeholder='Send results by email ✉',
label_visibility="collapsed")
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ requests
stqdm
streamlit
streamlit_analytics
tqdm
tqdm
1 change: 1 addition & 0 deletions streamlit_searchbox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import streamlit as st
import streamlit.components.v1 as components
import time

try:
from streamlit import rerun as rerun # type: ignore
Expand Down

0 comments on commit d6164f0

Please sign in to comment.