William_S commited on
Commit
9ae8c4e
1 Parent(s): 1185ef6

remove depth

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -27,9 +27,7 @@ def earthquake(latitude, longitude, time):
27
  res = model.predict(np.asarray(input_list).reshape(1, -1))[0]
28
  # split the result to 2 separate variables
29
  print(res)
30
- depth = res[0]
31
- mag = res[1]
32
- return depth, mag
33
 
34
  demo = gr.Interface(
35
  fn=earthquake,
@@ -41,7 +39,7 @@ demo = gr.Interface(
41
  gr.inputs.Number(default=59.3992, label="longitude"),
42
  gr.inputs.Number(default=167.2185429275, label="time"),
43
  ],
44
- outputs=[gr.Number(label="depth"), gr.Number(label="magnitude")]
45
  )
46
  demo.launch()
47
 
 
27
  res = model.predict(np.asarray(input_list).reshape(1, -1))[0]
28
  # split the result to 2 separate variables
29
  print(res)
30
+ return res[0]
 
 
31
 
32
  demo = gr.Interface(
33
  fn=earthquake,
 
39
  gr.inputs.Number(default=59.3992, label="longitude"),
40
  gr.inputs.Number(default=167.2185429275, label="time"),
41
  ],
42
+ outputs=[gr.Number(label="magnitude")]
43
  )
44
  demo.launch()
45