Spaces:
Running
Running
Eachan Johnson
commited on
Commit
·
a4896d3
1
Parent(s):
c4eec7f
Fix plot dropdowns
Browse files
app.py
CHANGED
@@ -316,7 +316,7 @@ def predict_file(
|
|
316 |
+ ['smiles', "mwt", "clogp"]
|
317 |
]
|
318 |
plot_dropdown = get_dropdown_options(prediction_df, _type="number")
|
319 |
-
|
320 |
gradio_opts = {
|
321 |
"label": "Predictions",
|
322 |
"value": prediction_df,
|
@@ -327,9 +327,9 @@ def predict_file(
|
|
327 |
}
|
328 |
|
329 |
if return_pd:
|
330 |
-
return ((prediction_df, gr.Dataframe(**gradio_opts)
|
331 |
else:
|
332 |
-
return (gr.Dataframe(**gradio_opts),) + (plot_dropdown,)
|
333 |
|
334 |
|
335 |
def draw_one(
|
|
|
316 |
+ ['smiles', "mwt", "clogp"]
|
317 |
]
|
318 |
plot_dropdown = get_dropdown_options(prediction_df, _type="number")
|
319 |
+
plot_dropdown = (plot_dropdown,) * 5
|
320 |
gradio_opts = {
|
321 |
"label": "Predictions",
|
322 |
"value": prediction_df,
|
|
|
327 |
}
|
328 |
|
329 |
if return_pd:
|
330 |
+
return ((prediction_df, gr.Dataframe(**gradio_opts)),) + (plot_dropdown,)
|
331 |
else:
|
332 |
+
return (gr.Dataframe(**gradio_opts),) + (plot_dropdown,)
|
333 |
|
334 |
|
335 |
def draw_one(
|