Spaces:
Sleeping
Sleeping
File size: 918 Bytes
00d7d7d f8ece24 d093d82 8d40cfd f8ece24 00d7d7d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import numpy as np
import tensorflow as tf
from tensorflow import keras
import gradio as gr
model = tf.keras.models.load_model("Air_Cooler.keras")
def comp(Tempurature,Flowrate):
Tempurature = Tempurature/40
Flowrate = Flowrate/2120312
Xn = np.array([[Tempurature,Flowrate]])
Yn = abs(model.predict(Xn))
Power = np.round(Yn[0,0]*132.3, 2)
Tempurature = np.round(Yn[0,1]*93, 2)
return Power, Tempurature
demo = gr.Interface(fn=comp,inputs=["number", "number"],outputs=["number", "number"],
title="Air Cooler Performance Model",
description="This model is built by Deep Nural Network for evaluating performance of Air Cooler used for CO2 cooling. Here, you have to define Atmospheric air temperature in (Deg.C) and Air flowrate in (Kg/hr). First output is Fan Power in (KW) and second output is Cooled CO2 Temperature in (Deg.C)."
)
demo.launch() |