Akshat-1812 commited on
Commit
788250b
·
verified ·
1 Parent(s): 25b4139

updated interface method

Browse files
Files changed (1) hide show
  1. app.py +13 -3
app.py CHANGED
@@ -8,6 +8,7 @@ import gradio as gr
8
  import gdown
9
 
10
 
 
11
  url = 'https://drive.google.com/drive/folders/1ATO7lCqHr3ZCkICAs2ensV4YBe_ORhhE?usp=drive_link'
12
  gdown.download_folder(url)
13
 
@@ -98,10 +99,19 @@ def skimAbstract(text):
98
  result_list.append(pred_classes[i] + ' : ' + line)
99
  return "\n\n".join(result_list)
100
 
 
 
 
 
 
101
  demo = gr.Interface(
102
  fn=skimAbstract,
103
- inputs=gr.Textbox(placeholder="Name Here...",interactive=True),
104
  outputs=gr.Textbox(placeholder="Output", #interactive=True,
105
- container=True,show_copy_button=True,label=class_labels),
 
 
 
 
106
  )
107
- demo.launch(debug=True)
 
8
  import gdown
9
 
10
 
11
+ # download the model
12
  url = 'https://drive.google.com/drive/folders/1ATO7lCqHr3ZCkICAs2ensV4YBe_ORhhE?usp=drive_link'
13
  gdown.download_folder(url)
14
 
 
99
  result_list.append(pred_classes[i] + ' : ' + line)
100
  return "\n\n".join(result_list)
101
 
102
+ title = "Skim Lit"
103
+ description = f" Don't know in given abstract of a RCT, what role does each sentence serve in the abstract. Skim lit is here to help you."
104
+ examples = ['Mental illness, including depression, anxiety and bipolar disorder, accounts for a significant proportion of global disability and poses a substantial social, economic and heath burden. Treatment is presently dominated by pharmacotherapy, such as antidepressants, and psychotherapy, such as cognitive behavioural therapy; however, such treatments avert less than half of the disease burden, suggesting that additional strategies are needed to prevent and treat mental disorders. There are now consistent mechanistic, observational and interventional data to suggest diet quality may be a modifiable risk factor for mental illness. This review provides an overview of the nutritional psychiatry field. It includes a discussion of the neurobiological mechanisms likely modulated by diet, the use of dietary and nutraceutical interventions in mental disorders, and recommendations for further research. Potential biological pathways related to mental disorders include inflammation, oxidative stress, the gut microbiome, epigenetic modifications and neuroplasticity. Consistent epidemiological evidence, particularly for depression, suggests an association between measures of diet quality and mental health, across multiple populations and age groups; these do not appear to be explained by other demographic, lifestyle factors or reverse causality. Our recently published intervention trial provides preliminary clinical evidence that dietary interventions in clinically diagnosed populations are feasible and can provide significant clinical benefit. Furthermore, nutraceuticals including n-3 fatty acids, folate, S-adenosylmethionine, N-acetyl cysteine and probiotics, among others, are promising avenues for future research. Continued research is now required to investigate the efficacy of intervention studies in large cohorts and within clinically relevant populations, particularly in patients with schizophrenia, bipolar and anxiety disorders.']
105
+ enable_queue=True
106
+
107
  demo = gr.Interface(
108
  fn=skimAbstract,
109
+ inputs=gr.Textbox(placeholder="Enter your Medical abstract here.",interactive=True),
110
  outputs=gr.Textbox(placeholder="Output", #interactive=True,
111
+ container=True,show_copy_button=True,label=['BACKGROUND', 'OBJECTIVE', 'METHODS', 'RESULTS', 'CONCLUSIONS']),
112
+ title=title,
113
+ description=description,
114
+ examples=examples,
115
+ cache_examples=True,
116
  )
117
+ demo.launch(debug=True,enable_queue=enable_queue)