nukimayasari
commited on
Commit
•
df999d6
1
Parent(s):
683a1c4
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
-
import
|
3 |
|
4 |
# Load your trained model
|
5 |
-
model =
|
|
|
6 |
|
7 |
# Define prediction function
|
8 |
def predict_performance(Gender, AttendanceRate, StudyHoursPerWeek, PreviousGrade, ExtracurricularActivities, ParentalSupport):
|
|
|
1 |
import gradio as gr
|
2 |
+
from tensorflow.keras.models import load_model
|
3 |
|
4 |
# Load your trained model
|
5 |
+
model = load_model("student_performance_model.h5")
|
6 |
+
|
7 |
|
8 |
# Define prediction function
|
9 |
def predict_performance(Gender, AttendanceRate, StudyHoursPerWeek, PreviousGrade, ExtracurricularActivities, ParentalSupport):
|