Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -284,13 +284,6 @@ with gr.Blocks(title="PINO — Physics-Informed Neural Olfaction") as demo:
|
|
| 284 |
add_btn.click(_add_row, [ingredient_table, add, add_parts], ingredient_table)
|
| 285 |
run.click(predict, [arm, ingredient_table], [out_plot, out_text])
|
| 286 |
|
| 287 |
-
gr.Examples(
|
| 288 |
-
examples=[
|
| 289 |
-
["OpenPOM (genuine 256-d)", [["Linalool [78-70-6]", 30], ["Linalyl acetate [115-95-7]", 20], ["gamma-Terpinene [99-85-4]", 5]]],
|
| 290 |
-
],
|
| 291 |
-
inputs=[arm, ingredient_table],
|
| 292 |
-
label="Try an example",
|
| 293 |
-
)
|
| 294 |
gr.Markdown(
|
| 295 |
"*Model: PhysicsInformedMixtureTransformer over OpenPOM / Morgan embeddings + Dortmund-UNIFAC "
|
| 296 |
"evaporation physics. Trained on 5,708 empirical formulations (molecule-disjoint holdout). "
|
|
@@ -298,4 +291,4 @@ with gr.Blocks(title="PINO — Physics-Informed Neural Olfaction") as demo:
|
|
| 298 |
)
|
| 299 |
|
| 300 |
if __name__ == "__main__":
|
| 301 |
-
demo.launch()
|
|
|
|
| 284 |
add_btn.click(_add_row, [ingredient_table, add, add_parts], ingredient_table)
|
| 285 |
run.click(predict, [arm, ingredient_table], [out_plot, out_text])
|
| 286 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 287 |
gr.Markdown(
|
| 288 |
"*Model: PhysicsInformedMixtureTransformer over OpenPOM / Morgan embeddings + Dortmund-UNIFAC "
|
| 289 |
"evaporation physics. Trained on 5,708 empirical formulations (molecule-disjoint holdout). "
|
|
|
|
| 291 |
)
|
| 292 |
|
| 293 |
if __name__ == "__main__":
|
| 294 |
+
demo.queue().launch(server_name="0.0.0.0", server_port=int(os.environ.get("PORT", 7860)))
|