import gradio as gr #gr.load("models/microsoft/Phi-3-mini-4k-instruct").launch() #gr.ChatInterface(gr.load("models/meta-llama/Meta-Llama-3-8B-Instruct")).launch() description = """ # 🧠 NeuroSynth NeuroSynth is a dataset which consists of 18,000 synthetic neuroimaging data samples covering worldwide healthy population across human lifespan. ## Dataset Details The dataset has the following characteristics: * Generative models were trained on 40,000 subjects from the iSTAGING consortium to synthesize 145 brain anatomical region-of-interest (ROI) volumes which are derived from structural T1-weighted magnetic resonance imaging (MRI). * The dataset includes participants’ demographic information, such as sex, age and race, which are beneficial for research focusing on mitigating algorithmic bias and promoting fairnes. * Besides 18,000 samples in the dataset, we also share the pre-trained generative models for users to customize their needs for data synthesis. ## Dataset Download * For Safari users, please right click on the "Download" button below and select "Download Linked File" * Other browser users can directly click on the "Download" button to save the data * Download via command line: ``` wget https://rongguangw-neuro-synth.hf.space/file=dataset/neurosynth_dataset.csv ``` * You can also customize sex and race for the subjects and sample size by generating online in the below panels. The synthesized data will be showing in the lower right panel, and then, you can save the data by clicking on the "Download" button. """ with gr.Blocks() as demo: gr.Markdown(description) if __name__ == "__main__": demo.launch(debug=True, share=True)