naughtondale commited on
Commit
d091f09
1 Parent(s): 955a2d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -35,22 +35,16 @@ def train_and_predict(data, Qwater, Qgas, BHP, WHP, WHT, Tsep, Psep, Choke_in):
35
 
36
  return f"The number of barrels produced per day given these inputs is {predicted_qoil[0]}"
37
 
38
- theme = {
39
- "primary": "#212529",
40
- "secondary": "#ADD8E6",
41
- "background": "#1e2225",
42
- "text": "#ffffff",
43
- "input": "#f2f2f2",
44
- "output": "#f2f2f2",
45
- }
46
 
47
  iface = gr.Interface(
48
  fn=train_and_predict,
49
  inputs=[gr.inputs.File(type="bytes"), "number", "number", "number", "number", "number", "number", "number", "number"],
50
  outputs="text",
 
51
  title="Oil Flow Production & Optimization Application",
52
  description="""This application is the interface of a machine learning model (utilizing the Random Forest algorithm) that allows Oil and Gas executives with no coding knowledge or experience to enter inputs related to oil production and predict the number of barrels that will be produced per day given those inputs. The executive can engage in scenario planning to optimize oil flow by tweaking/changing various input values to see what would result in greater oil flow. The executive can also ask questions about the model or get explanations of the inputs and/or results via the attached GPT 3.5 chatbot. STEPS: Upload the oil production dataset. Enter the planned or anticipated input values (Qwater, Qgas, BHP, WHP, WHT, Tsep, Psep, Choke_in) and then click Submit. The model will initiate and complete its training and validation in the background using the dataset provided and then return the output value (Qoil) to the user.'
53
- theme='gradio/monochrome',
54
 
55
  Input Features:
56
  Qwater: Water Flow Rate
 
35
 
36
  return f"The number of barrels produced per day given these inputs is {predicted_qoil[0]}"
37
 
38
+
 
 
 
 
 
 
 
39
 
40
  iface = gr.Interface(
41
  fn=train_and_predict,
42
  inputs=[gr.inputs.File(type="bytes"), "number", "number", "number", "number", "number", "number", "number", "number"],
43
  outputs="text",
44
+ theme = 'gradio/monochrome'
45
  title="Oil Flow Production & Optimization Application",
46
  description="""This application is the interface of a machine learning model (utilizing the Random Forest algorithm) that allows Oil and Gas executives with no coding knowledge or experience to enter inputs related to oil production and predict the number of barrels that will be produced per day given those inputs. The executive can engage in scenario planning to optimize oil flow by tweaking/changing various input values to see what would result in greater oil flow. The executive can also ask questions about the model or get explanations of the inputs and/or results via the attached GPT 3.5 chatbot. STEPS: Upload the oil production dataset. Enter the planned or anticipated input values (Qwater, Qgas, BHP, WHP, WHT, Tsep, Psep, Choke_in) and then click Submit. The model will initiate and complete its training and validation in the background using the dataset provided and then return the output value (Qoil) to the user.'
47
+
48
 
49
  Input Features:
50
  Qwater: Water Flow Rate