cipherunhsiv commited on
Commit
367a7ac
·
verified ·
1 Parent(s): a84bc45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -32,6 +32,12 @@ inputs = [
32
 
33
  output = gr.Textbox(label="Prediction")
34
 
 
 
 
 
 
 
35
  def func(e1, e2, e3, e4, e5, e6, e7, e8):
36
  return action(e1, e2, e3, e4, e5, e6, e7, e8)
37
 
@@ -40,9 +46,7 @@ iface = gr.Interface(
40
  inputs=inputs,
41
  outputs=output,
42
  title="ML Model Predictor",
43
- examples=[['-2.00E-05, 1.00E-05, 0.00022, 0.00018, -0.00015, -5.00E-05, 1.00E-05, 0'],
44
- ['0.00016, -1.00E-04, -0.00024, 2.00E-04, 1.00E-04, -9.00E-05, -5.00E-05, -5.00E-05'],
45
- ['-1.00E-05, 1.00E-05, 1.00E-05, 0, -2.00E-05, 0, -3.00E-05, -3.00E-05']],
46
  flagging_options=["Working", "Not Wotking"],
47
  description="Enter the 8 feature values to get a prediction."
48
  )
 
32
 
33
  output = gr.Textbox(label="Prediction")
34
 
35
+ examples = [
36
+ [-2.00e-05, 1.00e-05, 2.20e-04, 1.80e-04, -1.50e-04, -5.00e-05, 1.00e-05, 0],
37
+ [1.60e-04, -1.00e-04, -2.40e-04, 2.00e-04, 1.00e-04, -9.00e-05, -5.00e-05, -5.00e-05],
38
+ [-1.00e-05, 1.00e-05, 1.00e-05, 0, -2.00e-05, 0, -3.00e-05, -3.00e-05],
39
+ ]
40
+
41
  def func(e1, e2, e3, e4, e5, e6, e7, e8):
42
  return action(e1, e2, e3, e4, e5, e6, e7, e8)
43
 
 
46
  inputs=inputs,
47
  outputs=output,
48
  title="ML Model Predictor",
49
+ examples=examples,
 
 
50
  flagging_options=["Working", "Not Wotking"],
51
  description="Enter the 8 feature values to get a prediction."
52
  )