HugoHE commited on
Commit
b395bd7
·
1 Parent(s): 1ffcd25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -101,12 +101,12 @@ def simulation(input_noise, output_noise, min_val, max_val, kp, ki):
101
  df = pd.DataFrame(result)
102
  trace1 = go.Scatter(x=df.index, y=df['BIS'], mode='lines', name='BIS')
103
  fig1 = go.Figure(data=trace1)
104
- fig1.update_layout(height=300, width=900, title_text="BIS evolution")
105
 
106
  # Add a line trace for column_2 in the second subplot
107
  trace2 = go.Scatter(x=df.index, y=df['Infusion'], mode='lines', name='Infusion')
108
  fig2 = go.Figure(data=trace2)
109
- fig2.update_layout(height=300, width=900, title_text="Infusion evolution")
110
 
111
  return fig1, fig2
112
  import gradio as gr
 
101
  df = pd.DataFrame(result)
102
  trace1 = go.Scatter(x=df.index, y=df['BIS'], mode='lines', name='BIS')
103
  fig1 = go.Figure(data=trace1)
104
+ fig1.update_layout(height=400, width=1200, title_text="BIS evolution")
105
 
106
  # Add a line trace for column_2 in the second subplot
107
  trace2 = go.Scatter(x=df.index, y=df['Infusion'], mode='lines', name='Infusion')
108
  fig2 = go.Figure(data=trace2)
109
+ fig2.update_layout(height=400, width=1200, title_text="Infusion evolution")
110
 
111
  return fig1, fig2
112
  import gradio as gr