pushpikaLiyanagama
commited on
Commit
•
a7b659a
1
Parent(s):
545f904
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
# app.py
|
2 |
-
|
3 |
import joblib
|
4 |
import pandas as pd
|
5 |
import gradio as gr
|
@@ -37,7 +35,7 @@ def predict(course_overview, reading_file, abstract_materiale, concrete_material
|
|
37 |
predictions = {}
|
38 |
for target, model in models.items():
|
39 |
pred = model.predict(input_scaled)
|
40 |
-
predictions[target] = pred[0] #
|
41 |
|
42 |
return predictions
|
43 |
|
|
|
|
|
|
|
1 |
import joblib
|
2 |
import pandas as pd
|
3 |
import gradio as gr
|
|
|
35 |
predictions = {}
|
36 |
for target, model in models.items():
|
37 |
pred = model.predict(input_scaled)
|
38 |
+
predictions[target] = pred[0] # Return as is, without converting to int
|
39 |
|
40 |
return predictions
|
41 |
|