Spaces:
Sleeping
Sleeping
File size: 968 Bytes
00d7d7d cf2e906 d093d82 8d40cfd cf2e906 00d7d7d 8d40cfd 00d7d7d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import numpy as np
import os
import gradio as gr
pip install -U keras huggingface_hub
os.environ["KERAS_BACKEND"] = "jax"
import keras
model = keras.saving.load_model("hf://brian25/Air_Cooler")
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() |