Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ Original file is located at
|
|
| 7 |
https://colab.research.google.com/drive/1GgGC-fVnA0fSxU859NjSi_jH8yiWUKOu
|
| 8 |
"""
|
| 9 |
|
| 10 |
-
|
| 11 |
|
| 12 |
"""# Chem simulation using scipy"""
|
| 13 |
|
|
@@ -450,7 +450,7 @@ def ode2(A0, B0, C0, temp, Ea, A_factor, is_reversible, order):
|
|
| 450 |
|
| 451 |
"""## gradio"""
|
| 452 |
|
| 453 |
-
|
| 454 |
|
| 455 |
import gradio as gr
|
| 456 |
import pandas as pd
|
|
@@ -510,7 +510,6 @@ def run_simulation_and_plot(temp, Ea, A_factor, pH, pressure, is_reversible, str
|
|
| 510 |
with gr.Blocks() as iface:
|
| 511 |
gr.Markdown("# Chemical Reaction Order Prediction and Simulation")
|
| 512 |
gr.Markdown("Use the sliders and options to see the predicted reaction order and a plot of the concentrations over time.")
|
| 513 |
-
gr.Markdown("Project made by Mujtaba , Muzammil , Taha and Ali Zain")
|
| 514 |
with gr.Row():
|
| 515 |
with gr.Column():
|
| 516 |
gr.Markdown("### Reaction Conditions")
|
|
@@ -545,11 +544,11 @@ with gr.Blocks() as iface:
|
|
| 545 |
|
| 546 |
iface.launch()
|
| 547 |
|
| 548 |
-
|
| 549 |
|
| 550 |
"""## Streamlit Stuff"""
|
| 551 |
|
| 552 |
-
|
| 553 |
|
| 554 |
import streamlit as st
|
| 555 |
import pandas as pd
|
|
@@ -640,7 +639,7 @@ st.markdown("App created with ❤️ using Streamlit")
|
|
| 640 |
|
| 641 |
|
| 642 |
|
| 643 |
-
|
| 644 |
|
| 645 |
"""Main code for Steamlit pipeline
|
| 646 |
|
|
|
|
| 7 |
https://colab.research.google.com/drive/1GgGC-fVnA0fSxU859NjSi_jH8yiWUKOu
|
| 8 |
"""
|
| 9 |
|
| 10 |
+
!pip install tensorflow==2.15
|
| 11 |
|
| 12 |
"""# Chem simulation using scipy"""
|
| 13 |
|
|
|
|
| 450 |
|
| 451 |
"""## gradio"""
|
| 452 |
|
| 453 |
+
!pip install gradio
|
| 454 |
|
| 455 |
import gradio as gr
|
| 456 |
import pandas as pd
|
|
|
|
| 510 |
with gr.Blocks() as iface:
|
| 511 |
gr.Markdown("# Chemical Reaction Order Prediction and Simulation")
|
| 512 |
gr.Markdown("Use the sliders and options to see the predicted reaction order and a plot of the concentrations over time.")
|
|
|
|
| 513 |
with gr.Row():
|
| 514 |
with gr.Column():
|
| 515 |
gr.Markdown("### Reaction Conditions")
|
|
|
|
| 544 |
|
| 545 |
iface.launch()
|
| 546 |
|
| 547 |
+
!gradio deploy
|
| 548 |
|
| 549 |
"""## Streamlit Stuff"""
|
| 550 |
|
| 551 |
+
!pip install -q streamlit
|
| 552 |
|
| 553 |
import streamlit as st
|
| 554 |
import pandas as pd
|
|
|
|
| 639 |
|
| 640 |
|
| 641 |
|
| 642 |
+
!npm install -g localtunnel
|
| 643 |
|
| 644 |
"""Main code for Steamlit pipeline
|
| 645 |
|