Atquiya-Labiba commited on
Commit
ac12796
·
1 Parent(s): e7c3008

Updated app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -32,13 +32,10 @@ examples = [
32
  demo = gr.Interface(
33
  fn=classify_question_tags,
34
  inputs=gr.Textbox(lines=8, placeholder="Enter your question here..."),
35
- outputs=gr.Label(num_top_classes=5),
36
- )
37
-
38
- demo.examples = gr.Examples(
39
- examples=examples,
40
- inputs=demo.input_components,
41
- examples_per_page=1
42
  )
43
-
44
  demo.launch(inline=False)
 
32
  demo = gr.Interface(
33
  fn=classify_question_tags,
34
  inputs=gr.Textbox(lines=8, placeholder="Enter your question here..."),
35
+ outputs=gr.Label(num_top_classes=5),
36
+ examples = [
37
+ "I want to develop a machine learning model that predicts the correct medicine dosage required to keep a specific lab value within the target range of 5 to 7. I also have several other predictor variables available. I am unsure which machine learning algorithm would be most suitable for deployment and use with future patients. Additionally, should I define the outcome as binary (1 if the value is between 5 and 7, and 0 otherwise), or is there a better approach?",
38
+ "What is the best way to evaluate performance of Generative Adverserial Network (GAN)? Perhaps measuring the distance between two distributions or maybe something else?"
39
+ ]
 
 
40
  )
 
41
  demo.launch(inline=False)