Dea22 commited on
Commit
f97cbba
·
1 Parent(s): e6f71f0

Changing themes

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -62,7 +62,9 @@ class:`Lasso` and class: `MultiTaskLasso` are used in this example.
62
  Plots represent Lasso, MultiTaskLasso and Ground truth time series
63
  """
64
 
65
- with gr.Blocks() as demo:
 
 
66
 
67
  gr.Markdown('''
68
  <div>
@@ -74,14 +76,14 @@ with gr.Blocks() as demo:
74
  gr.Markdown(
75
  "Iterative conversion by: <a href=\"https://www.deamarialeon.com\">Dea María Léon</a>"
76
  )
 
77
 
78
  with gr.Row().style(equal_height=True):
79
-
80
  n_features = gr.Slider(5,50,value=30,step=5,label='Features')
81
  n_tasks = gr.Slider(5,50,value=40,step=5,label='Tasks')
82
  n_relevant_features = gr.Slider(1,10,value=5,step=1,label='Relevant features')
83
  alpha = gr.Slider(0,10,value=1.0,step=0.5,label='Alpha Range')
84
- n_samples = gr.Slider(50,500,value=100,step=50,label='Number of samples')
85
 
86
  btn = gr.Button(value = 'Submit')
87
 
 
62
  Plots represent Lasso, MultiTaskLasso and Ground truth time series
63
  """
64
 
65
+ with gr.Blocks(theme=gr.themes.Glass(primary_hue=gr.themes.colors.gray,
66
+ secondary_hue=gr.themes.colors.sky,
67
+ text_size=gr.themes.sizes.text_lg)) as demo:
68
 
69
  gr.Markdown('''
70
  <div>
 
76
  gr.Markdown(
77
  "Iterative conversion by: <a href=\"https://www.deamarialeon.com\">Dea María Léon</a>"
78
  )
79
+ gr.Markdown("### Please select values and click submit:")
80
 
81
  with gr.Row().style(equal_height=True):
82
+ n_samples = gr.Slider(50,500,value=100,step=50,label='Number of samples')
83
  n_features = gr.Slider(5,50,value=30,step=5,label='Features')
84
  n_tasks = gr.Slider(5,50,value=40,step=5,label='Tasks')
85
  n_relevant_features = gr.Slider(1,10,value=5,step=1,label='Relevant features')
86
  alpha = gr.Slider(0,10,value=1.0,step=0.5,label='Alpha Range')
 
87
 
88
  btn = gr.Button(value = 'Submit')
89