Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -254,9 +254,7 @@ with gr.Blocks(css=css_styling, title=page_title) as demo:
|
|
254 |
with gr.Row():
|
255 |
with gr.Column():
|
256 |
gr.Markdown("### Your alloy formula")
|
257 |
-
gr.
|
258 |
-
with gr.Row():
|
259 |
-
with gr.Column():
|
260 |
gr.Markdown("### The target performance of your alloy")
|
261 |
input_hardness = gr.Text(label="Enter your target hardness (in HV)")
|
262 |
input_yield_strength = gr.Text(label="Enter your target yield strength (MPa)")
|
@@ -286,7 +284,7 @@ with gr.Blocks(css=css_styling, title=page_title) as demo:
|
|
286 |
|
287 |
prediction_button.click(
|
288 |
fn=predict_inverse,
|
289 |
-
inputs=[input_hardness, input_yield_strength],
|
290 |
outputs=[
|
291 |
param1,
|
292 |
param2,
|
|
|
254 |
with gr.Row():
|
255 |
with gr.Column():
|
256 |
gr.Markdown("### Your alloy formula")
|
257 |
+
formula = gr.Text(label = "Alloy formula)
|
|
|
|
|
258 |
gr.Markdown("### The target performance of your alloy")
|
259 |
input_hardness = gr.Text(label="Enter your target hardness (in HV)")
|
260 |
input_yield_strength = gr.Text(label="Enter your target yield strength (MPa)")
|
|
|
284 |
|
285 |
prediction_button.click(
|
286 |
fn=predict_inverse,
|
287 |
+
inputs=[input_hardness, input_yield_strength, formula],
|
288 |
outputs=[
|
289 |
param1,
|
290 |
param2,
|