Spaces:
Sleeping
Sleeping
analytics-jiten
commited on
Commit
•
96e2baf
1
Parent(s):
cc11d29
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ import numpy as np
|
|
2 |
import pandas as pd
|
3 |
import matplotlib.pyplot as plt
|
4 |
import warnings
|
|
|
|
|
5 |
warnings.filterwarnings('ignore')
|
6 |
|
7 |
data = pd.read_csv("Placement_Data_Full_Class.csv")
|
@@ -41,8 +43,6 @@ def prediction(name,gender,ssc_p,ssc_b,hsc_p,hsc_b,hsc_s,degree_p,degree_t,worke
|
|
41 |
return "Congratulations! "+name+", you have a high chance of getting placed."
|
42 |
else:
|
43 |
return "Sorry! "+name+", better luck next time."
|
44 |
-
|
45 |
-
import gradio as gr
|
46 |
|
47 |
interface = gr.Interface(prediction,inputs=[
|
48 |
gr.Textbox(lines=2, placeholder="Enter your Name Here...", show_label = False),
|
|
|
2 |
import pandas as pd
|
3 |
import matplotlib.pyplot as plt
|
4 |
import warnings
|
5 |
+
import gradio as gr
|
6 |
+
import sklearn
|
7 |
warnings.filterwarnings('ignore')
|
8 |
|
9 |
data = pd.read_csv("Placement_Data_Full_Class.csv")
|
|
|
43 |
return "Congratulations! "+name+", you have a high chance of getting placed."
|
44 |
else:
|
45 |
return "Sorry! "+name+", better luck next time."
|
|
|
|
|
46 |
|
47 |
interface = gr.Interface(prediction,inputs=[
|
48 |
gr.Textbox(lines=2, placeholder="Enter your Name Here...", show_label = False),
|