Spaces:
Sleeping
Sleeping
Eachan Johnson commited on
Commit ·
ed1d3fc
1
Parent(s): 5911a8e
Update README, fix dropdown response
Browse files10 unmodified lines1112131415161710 unmodified lineslicense: mitshort_description: Predict MIC (with uncertainty) against bacterial speciesmodels:- scbirlab/spark-dv-fp-2503-kpndatasets:- scbirlab/thomas-2018-spark-wt---10 unmodified lines1112131415161718192021222324252610 unmodified lineslicense: mitshort_description: Predict MIC (with uncertainty) against bacterial speciesmodels:- scbirlab/spark-dv-fp-2503-abau- scbirlab/spark-dv-fp-2503-babo- scbirlab/spark-dv-fp-2503-ecol- scbirlab/spark-dv-fp-2503-ftul- scbirlab/spark-dv-fp-2503-kpne- scbirlab/spark-dv-fp-2503-paer- scbirlab/spark-dv-fp-2503-saur- scbirlab/spark-dv-fp-2503-spne- scbirlab/spark-dv-fp-2503-yent- scbirlab/spark-dv-fp-2503-ypesdatasets:- scbirlab/thomas-2018-spark-wt---
27 unmodified lines28293031323334439 unmodified lines474475476477478479480481482483484245 unmodified lines73073173273373473519 unmodified lines75575675775875976060 unmodified lines82182282382482582682782882983083127 unmodified linesimport torchfrom duvida.stateless.config import configTHEME = gr.themes.Soft()DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")CACHE = "./cache"439 unmodified linesreturn_pd=True,)print_err(df.head())# plot_dropdown = get_dropdown_options(df, _type="number")return (df_gr,download_table(df),)def _initial_setup():245 unmodified lines],)with gr.Tab(f"Predict on structures from a file (max. {MAX_ROWS} rows, ≤ 2 species)"):file_examples = gr.Examples(examples=[[19 unmodified linesoutputs=[input_dataframe,download,],cache_examples=True, ## appears to cause CSV load errorcache_mode="lazy",60 unmodified linesoutputs=[plot_button],js=True,)plot_dropdowns = list(itertools.chain(left_plot_inputs.values(),right_plot_inputs.values(),))for dropdown in plot_dropdowns:for e in (file_examples.load_input_event, go2_click_event):27 unmodified lines28293031323334439 unmodified lines474475476477478479480481482483484245 unmodified lines73073173273373473573673773873919 unmodified lines75976076176276376476560 unmodified lines82682782882983083127 unmodified linesimport torchfrom duvida.stateless.config import configTHEME = gr.themes.Default()DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")CACHE = "./cache"439 unmodified linesreturn_pd=True,)print_err(df.head())plot_dropdown = get_dropdown_options(df, _type="number")return (df_gr,download_table(df),) + (plot_dropdown, ) * 5def _initial_setup():245 unmodified lines],)with gr.Tab(f"Predict on structures from a file (max. {MAX_ROWS} rows, ≤ 2 species)"):plot_dropdowns = list(itertools.chain(left_plot_inputs.values(),right_plot_inputs.values(),))file_examples = gr.Examples(examples=[[19 unmodified linesoutputs=[input_dataframe,download,*plot_dropdowns,],cache_examples=True, ## appears to cause CSV load errorcache_mode="lazy",60 unmodified linesoutputs=[plot_button],js=True,)for dropdown in plot_dropdowns:for e in (file_examples.load_input_event, go2_click_event):
README.md+10-1
app.py+8-8