john6688 commited on
Commit
c722caf
1 Parent(s): f09293b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -1
app.py CHANGED
@@ -1,5 +1,29 @@
1
  import gradio as gr
2
 
3
  #gr.load("models/microsoft/Phi-3-mini-4k-instruct").launch()
 
4
 
5
- gr.ChatInterface(gr.load("models/meta-llama/Meta-Llama-3-8B-Instruct")).launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
  #gr.load("models/microsoft/Phi-3-mini-4k-instruct").launch()
4
+ #gr.ChatInterface(gr.load("models/meta-llama/Meta-Llama-3-8B-Instruct")).launch()
5
 
6
+ description = """
7
+ # 🧠 NeuroSynth
8
+
9
+ NeuroSynth is a dataset which consists of 18,000 synthetic neuroimaging data samples covering worldwide healthy population across human lifespan.
10
+ ## Dataset Details
11
+ The dataset has the following characteristics:
12
+ * 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).
13
+ * 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.
14
+ * Besides 18,000 samples in the dataset, we also share the pre-trained generative models for users to customize their needs for data synthesis.
15
+ ## Dataset Download
16
+ * For Safari users, please right click on the "Download" button below and select "Download Linked File"
17
+ * Other browser users can directly click on the "Download" button to save the data
18
+ * Download via command line:
19
+ ```
20
+ wget https://rongguangw-neuro-synth.hf.space/file=dataset/neurosynth_dataset.csv
21
+ ```
22
+ * 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.
23
+ """
24
+
25
+ with gr.Blocks() as demo:
26
+ gr.Markdown(description)
27
+
28
+ if __name__ == "__main__":
29
+ demo.launch(debug=True, share=True)