Kartheesh commited on
Commit
7d242db
·
1 Parent(s): 736c3e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -1,13 +1,4 @@
1
- from transformers import AutoModel
2
 
3
- access_token = "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"
4
-
5
-
6
- model = AutoModel.from_pretrained("Kartheesh/MLrun",token=access_token,use_auth_token=True)
7
-
8
- from datasets import load_dataset
9
-
10
- dataset = load_dataset("Kartheesh/MLdataset",use_auth_token=True)
11
  import gradio as gr
12
  import numpy as np
13
  import pandas as pd
@@ -46,6 +37,7 @@ def greet(year,co2_emission,No2_emission,so2_emission,Global_Warming,Methane_emi
46
 
47
  #Equation
48
  total1="2.29209688*(x1)+(-17.24834114)*(x2)+(-34.46449984)*(x3)+441.88734541(x4)+(-10.5704468)*(x5)+3032.3276611889232"
 
49
 
50
 
51
  #1997
@@ -1013,7 +1005,7 @@ def greet(year,co2_emission,No2_emission,so2_emission,Global_Warming,Methane_emi
1013
 
1014
  #app section
1015
  if(year==1996):
1016
- return total1,y_pred1
1017
 
1018
  elif(year==1997):
1019
  return total2,y_pred2
 
 
1
 
 
 
 
 
 
 
 
 
2
  import gradio as gr
3
  import numpy as np
4
  import pandas as pd
 
37
 
38
  #Equation
39
  total1="2.29209688*(x1)+(-17.24834114)*(x2)+(-34.46449984)*(x3)+441.88734541(x4)+(-10.5704468)*(x5)+3032.3276611889232"
40
+ eq1=2.29209688*(co2_emission)+(-17.24834114)*(No2_emission)+(-34.46449984)*(so2_emission)+441.88734541(Global_Warming)+(-10.5704468)*(Methane_emission)+3032.3276611889232
41
 
42
 
43
  #1997
 
1005
 
1006
  #app section
1007
  if(year==1996):
1008
+ return total1,eq1
1009
 
1010
  elif(year==1997):
1011
  return total2,y_pred2