Kartheesh commited on
Commit
ef7bc03
1 Parent(s): 653b4de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -1,16 +1,9 @@
1
  import gradio as gr
2
 
3
  def greet(year,co2_emission,No2_emission,so2_emission,Global_Warming,Methane_emission):
4
- df1 = data1.drop(['YEAR'], axis=1)
5
-
6
-
7
-
8
-
9
-
10
- #split the dataset
11
- from sklearn.model_selection import train_test_split
12
- X_train, X_test, y_train, y_test = train_test_split(
13
- x, y, test_size=0.33, random_state=42)
14
 
15
 
16
  #traing the dataset
 
1
  import gradio as gr
2
 
3
  def greet(year,co2_emission,No2_emission,so2_emission,Global_Warming,Methane_emission):
4
+ from sklearn.model_selection import train_test_split
5
+ X_train, X_test, y_train, y_test = train_test_split(
6
+ x, y, test_size=0.33, random_state=42)
 
 
 
 
 
 
 
7
 
8
 
9
  #traing the dataset