Gerard-1705 commited on
Commit
17c38ec
·
1 Parent(s): dad8deb

update app.py with just one image

Browse files
Files changed (1) hide show
  1. app.py +6 -12
app.py CHANGED
@@ -70,26 +70,20 @@ with gr.Blocks(title=title) as demo:
70
  to the Iris flower image (left), and returns the transformed first 3 principal components (feature \
71
  reduction) taken from a pre-trained model with Iris dataset (Right).
72
  """)
 
 
 
 
 
 
73
  with gr.Row():
74
  with gr.Column():
75
- html1 = (
76
- "<div >"
77
- "<img src='file/Iris_flower_dimensions.png' width='597' height='460' alt='image One'>"
78
- + "</div>"
79
- )
80
- gr.HTML(html1)
81
  inp1 = gr.Slider(0, 5, value=1, step=0.1, label="Sepal Length (cm)")
82
  inp2 = gr.Slider(0, 5, value=1, step=0.1, label="Sepal Width (cm)")
83
  inp3 = gr.Slider(0, 5, value=1, step=0.1, label="Petal Length (cm)")
84
  inp4 = gr.Slider(0, 5, value=1, step=0.1, label="Petal Width (cm)")
85
  output = gr.Textbox(label="PCA Axes")
86
  with gr.Column():
87
- html2 = (
88
- "<div >"
89
- "<img src='file/iris_dataset_info.png' alt='image two'>"
90
- + "</div>"
91
- )
92
- gr.HTML(html2)
93
  plot = gr.Plot(label="PCA 3D Space")
94
 
95
  Reduction = gr.Button("PCA Transform")
 
70
  to the Iris flower image (left), and returns the transformed first 3 principal components (feature \
71
  reduction) taken from a pre-trained model with Iris dataset (Right).
72
  """)
73
+ html = (
74
+ "<div >"
75
+ "<img src='file/iris_dataset_info.png' alt='image one'>"
76
+ + "</div>"
77
+ )
78
+ gr.HTML(html)
79
  with gr.Row():
80
  with gr.Column():
 
 
 
 
 
 
81
  inp1 = gr.Slider(0, 5, value=1, step=0.1, label="Sepal Length (cm)")
82
  inp2 = gr.Slider(0, 5, value=1, step=0.1, label="Sepal Width (cm)")
83
  inp3 = gr.Slider(0, 5, value=1, step=0.1, label="Petal Length (cm)")
84
  inp4 = gr.Slider(0, 5, value=1, step=0.1, label="Petal Width (cm)")
85
  output = gr.Textbox(label="PCA Axes")
86
  with gr.Column():
 
 
 
 
 
 
87
  plot = gr.Plot(label="PCA 3D Space")
88
 
89
  Reduction = gr.Button("PCA Transform")