Atquiya-Labiba commited on
Commit
5a7ce3f
·
1 Parent(s): 1c2604c

Updated app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -23,6 +23,12 @@ def classify_question_tags(description):
23
 
24
  return dict(zip(tags, map(float, probs)))
25
 
 
 
 
 
 
 
26
  label = gr.Label(num_top_classes=5)
27
- iface = gr.Interface(fn=classify_question_tags, inputs="text", outputs=label)
28
  iface.launch(inline=False)
 
23
 
24
  return dict(zip(tags, map(float, probs)))
25
 
26
+ examples = [
27
+ "Image recognition uses deep learning, and in particular CNNs to train on and recognise faces. Usually, this entails training on lots of data. However, recently, we have seen face recognition being deployed everywhere, and being used for passport control, for example, and some airlines have deployed in lieu of boarding pass scanners. How is this accomplished? How can they achieve such accuracy without having hundreds of pictures of everyone? How can, for example, governments, with a quick scan of my face, recognise me and identify my name and identity without having any picture of me besides the ones available from my official ids? There is a link here which, however, does not really explain it technically. Is it done using neural nets? What is their architecture. Are there papers describing it (technically) anywhere?",
28
+ "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?",
29
+ "What is the best way to evaluate performance of Generative Adverserial Network (GAN)? Perhaps measuring the distance between two distributions or maybe something else?"
30
+ ]
31
+
32
  label = gr.Label(num_top_classes=5)
33
+ iface = gr.Interface(fn=classify_question_tags, inputs="text", outputs=label, examples=examples)
34
  iface.launch(inline=False)