Spaces:
Sleeping
Sleeping
Eachan Johnson commited on
Commit ·
ed1d3fc
1
Parent(s): 5911a8e
Update README, fix dropdown response
Browse files10 unmodified lines111213141415161718192021222324252610 unmodified lineslicense: mitshort_description: Predict MIC (with uncertainty) against bacterial speciesmodels: - scbirlab/spark-dv-fp-2503-kpn - 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 lines2829303131323334439 unmodified lines474475476477477478479480481481482483484245 unmodified lines73073173273373473573673773873919 unmodified lines75976076176276376476560 unmodified lines82682782882482582682782882983083127 unmodified linesimport torchfrom duvida.stateless.config import config
THEME = gr.themes.Soft()THEME = gr.themes.Default()DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
CACHE = "./cache"439 unmodified lines return_pd=True, ) print_err(df.head()) # plot_dropdown = get_dropdown_options(df, _type="number") plot_dropdown = get_dropdown_options(df, _type="number") return ( df_gr, download_table(df), ) ) + (plot_dropdown, ) * 5
def _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 lines outputs=[ input_dataframe, download, *plot_dropdowns, ], cache_examples=True, ## appears to cause CSV load error cache_mode="lazy",60 unmodified lines outputs=[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):README.md+10-1
app.py+8-8