naughtondale commited on
Commit
be1f278
1 Parent(s): 998baf0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,6 +7,9 @@ from sklearn.metrics import mean_absolute_error, mean_squared_error, r2_score
7
  import gradio as gr
8
  import io
9
 
 
 
 
10
  def train_and_predict(data, Qwater, Qgas, BHP, WHP, WHT, Tsep, Psep, Choke_in):
11
  # Load data from the uploaded CSV
12
  data = pd.read_csv(io.BytesIO(data))
@@ -57,8 +60,6 @@ iface = gr.Interface(
57
  Ask questions about the meaning of these values using the application's AI chatbot here: https://huggingface.co/spaces/AITECHPRODUCTS/Oil-Flow-Chatbot"""
58
  )
59
 
60
- with gr.Blocks(theme=gr.themes.Default(primary_hue=gr.themes.colors.red, secondary_hue=gr.themes.colors.pink)) as demo:
61
- ...
62
 
63
 
64
  iface.launch()
 
7
  import gradio as gr
8
  import io
9
 
10
+ with gr.Blocks(theme=gr.themes.Default(primary_hue=gr.themes.colors.red, secondary_hue=gr.themes.colors.pink)) as demo:
11
+ ...
12
+
13
  def train_and_predict(data, Qwater, Qgas, BHP, WHP, WHT, Tsep, Psep, Choke_in):
14
  # Load data from the uploaded CSV
15
  data = pd.read_csv(io.BytesIO(data))
 
60
  Ask questions about the meaning of these values using the application's AI chatbot here: https://huggingface.co/spaces/AITECHPRODUCTS/Oil-Flow-Chatbot"""
61
  )
62
 
 
 
63
 
64
 
65
  iface.launch()