jucamohedano commited on
Commit
4374648
1 Parent(s): c81bfa5

remove notebook syntax

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -1,4 +1,3 @@
1
- #%%
2
  import gradio as gr
3
  import numpy as np
4
  import matplotlib.pyplot as plt
@@ -10,7 +9,6 @@ from sklearn.svm import LinearSVC
10
  from sklearn.inspection import DecisionBoundaryDisplay
11
  from sklearn.exceptions import ConvergenceWarning
12
 
13
- #%%
14
  def train_model(n_samples, C, penalty, loss, max_iter):
15
 
16
  if penalty == "l1" and loss == "hinge":
@@ -182,6 +180,4 @@ with gr.Blocks(title=title) as demo:
182
  loss2.change(fn=fn, inputs=[n_samples, param_C2, penalty2, loss2, max_iter2], outputs=plot2)
183
  max_iter2.change(fn=fn, inputs=[n_samples, param_C2, penalty2, loss2, max_iter2], outputs=plot2)
184
 
185
- demo.launch()
186
-
187
- # %%
 
 
1
  import gradio as gr
2
  import numpy as np
3
  import matplotlib.pyplot as plt
 
9
  from sklearn.inspection import DecisionBoundaryDisplay
10
  from sklearn.exceptions import ConvergenceWarning
11
 
 
12
  def train_model(n_samples, C, penalty, loss, max_iter):
13
 
14
  if penalty == "l1" and loss == "hinge":
 
180
  loss2.change(fn=fn, inputs=[n_samples, param_C2, penalty2, loss2, max_iter2], outputs=plot2)
181
  max_iter2.change(fn=fn, inputs=[n_samples, param_C2, penalty2, loss2, max_iter2], outputs=plot2)
182
 
183
+ demo.launch()