Nashat90 commited on
Commit
2b3f21d
1 Parent(s): 6831eb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -50,6 +50,7 @@ def predict_model(qost, qgst):
50
  plt.xlabel("QOST") ;plt.ylabel("QGST")
51
  plt.legend(True,handles=legend_items)
52
  plt.title("Original Dataset"); plt.title("Predicted Dataset")
 
53
  return plt, regime[ int(_pred[0])-1 ]
54
  interface = gr.Interface(predict_model, inputs=[gr.Number(label="QOil[bbl/day]", value=20000), gr.Number(label="QGas[mmscf/day]", value=100)],
55
  outputs=[gr.Plot(label="Flow Map"),gr.Textbox(label="Identified Regime")])
 
50
  plt.xlabel("QOST") ;plt.ylabel("QGST")
51
  plt.legend(True,handles=legend_items)
52
  plt.title("Original Dataset"); plt.title("Predicted Dataset")
53
+ plt.ylim(0,200)
54
  return plt, regime[ int(_pred[0])-1 ]
55
  interface = gr.Interface(predict_model, inputs=[gr.Number(label="QOil[bbl/day]", value=20000), gr.Number(label="QGas[mmscf/day]", value=100)],
56
  outputs=[gr.Plot(label="Flow Map"),gr.Textbox(label="Identified Regime")])