Joe Chi
commited on
Commit
•
d88bb79
1
Parent(s):
ac1423c
Change view to directly show all plot
Browse files
app.py
CHANGED
@@ -77,13 +77,9 @@ with gr.Blocks(title=title) as demo:
|
|
77 |
gr.Markdown(f"## {title}")
|
78 |
gr.Markdown("These figures aid in illustrating how a point cloud can be \
|
79 |
very flat in one direction–which is where PCA comes in to choose a direction that is not flat.")
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
choices=['Very flat direction', 'Not flat direction'], value='Very flat direction')
|
84 |
-
plot = gr.Plot(label="Plot")
|
85 |
-
button.change(make_plot, inputs=button, outputs=plot)
|
86 |
-
demo.load(make_plot, inputs=button, outputs=plot)
|
87 |
|
88 |
if __name__ == "__main__":
|
89 |
demo.launch()
|
|
|
77 |
gr.Markdown(f"## {title}")
|
78 |
gr.Markdown("These figures aid in illustrating how a point cloud can be \
|
79 |
very flat in one direction–which is where PCA comes in to choose a direction that is not flat.")
|
80 |
+
with gr.Row():
|
81 |
+
plot1 = gr.Plot(value=make_plot("Very flat direction"), label="Very flat direction")
|
82 |
+
plot2 = gr.Plot(value=make_plot("Not flat direction"), label="Not flat direction")
|
|
|
|
|
|
|
|
|
83 |
|
84 |
if __name__ == "__main__":
|
85 |
demo.launch()
|