Kartheesh commited on
Commit
9dcfb3a
1 Parent(s): 20eed84

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +41 -0
app.py ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(year,co2_emission,No2_emission,so2_emission,Global_Warming,Methane_emission):
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+ #Equation
12
+ total1="2.29209688*(x1)+(-17.24834114)*(x2)+(-34.46449984)*(x3)+441.88734541*(x4)+(-10.5704468)*(x5)+3032.3276611889232"
13
+ eq1=2.29209688*(co2_emission)+(-17.24834114)*(No2_emission)+(-34.46449984)*(so2_emission)+441.88734541*(Global_Warming)+(-10.5704468)*(Methane_emission)+3032.3276611889232
14
+
15
+ if(year==1996):
16
+ return total1,eq1
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ demo = gr.Interface(
28
+ fn=greet,
29
+ inputs=["number","number","number","number","number","number"],
30
+ outputs=["text","number"],
31
+ title="BARA SHIGRI",
32
+ css="div {background-image: url('https://drive.google.com/uc?export=view&id=1o4Q6O7LAFTpejs4zwOo6X-BYfrjjyTVr');background-size: 2000px 2000px;}",
33
+ description=
34
+ "Bara Shigri feeds the Chandra River which after its confluence at Tandi with the Bhaga River is known as Chandrabhaga or Chenab."
35
+ "According to Hugh Whistler’s 1924 writing, Shigri is applied par-excellence to one particular glacier that emerges from the mountains on the left bank of the Chenab. It is said to be several miles long, and the snout reaches right down to the river, lying athwart the customary road from Kulu to Spiti... In 1836 this glacier dammed the Chenab River, causing the formation of a large lake, which eventually broke loose and carried devastation down the valley."
36
+ "Across the Bara Shigri is another glacier known as Chhota Shigri. It is, as the name suggests, a comparatively smaller glacier.",
37
+ description_font_color="Black"
38
+
39
+
40
+ )
41
+ demo.launch()