Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -277,7 +277,8 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
|
|
277 |
elem2 = "%V"
|
278 |
elem3 = "%Mo"
|
279 |
with gr.Row():
|
280 |
-
|
|
|
281 |
input_list1.remove(elem2)
|
282 |
input_list1.remove(elem3)
|
283 |
dropdown_1 = gr.Dropdown(label="Fix element 1", choices=input_list1, value=elem1)
|
@@ -289,7 +290,7 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
|
|
289 |
step=space_dict[elem1]["step_display"],
|
290 |
)
|
291 |
with gr.Row():
|
292 |
-
input_list2 =
|
293 |
input_list2.remove(elem1)
|
294 |
input_list2.remove(elem3)
|
295 |
dropdown_2 = gr.Dropdown(label="Fix element 2", choices=input_list2, value=elem2)
|
@@ -301,7 +302,7 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
|
|
301 |
step=space_dict[elem2]["step_display"],
|
302 |
)
|
303 |
with gr.Row():
|
304 |
-
input_list3 =
|
305 |
input_list3.remove(elem1)
|
306 |
input_list3.remove(elem2)
|
307 |
dropdown_3 = gr.Dropdown(label="Fix element 3", choices=input_list3, value=elem3)
|
|
|
277 |
elem2 = "%V"
|
278 |
elem3 = "%Mo"
|
279 |
with gr.Row():
|
280 |
+
input_cols_gradio = ["%C", "%Co", "%Cr", "%V", "%Mo", "%W", "Temperature_C"]
|
281 |
+
input_list1 = input_cols_gradio.copy()
|
282 |
input_list1.remove(elem2)
|
283 |
input_list1.remove(elem3)
|
284 |
dropdown_1 = gr.Dropdown(label="Fix element 1", choices=input_list1, value=elem1)
|
|
|
290 |
step=space_dict[elem1]["step_display"],
|
291 |
)
|
292 |
with gr.Row():
|
293 |
+
input_list2 = input_cols_gradio.copy()
|
294 |
input_list2.remove(elem1)
|
295 |
input_list2.remove(elem3)
|
296 |
dropdown_2 = gr.Dropdown(label="Fix element 2", choices=input_list2, value=elem2)
|
|
|
302 |
step=space_dict[elem2]["step_display"],
|
303 |
)
|
304 |
with gr.Row():
|
305 |
+
input_list3 = input_cols_gradio.copy()
|
306 |
input_list3.remove(elem1)
|
307 |
input_list3.remove(elem2)
|
308 |
dropdown_3 = gr.Dropdown(label="Fix element 3", choices=input_list3, value=elem3)
|