Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
import pandas as pd
|
| 3 |
from huggingface_hub import hf_hub_download
|
| 4 |
import joblib
|
|
@@ -44,7 +44,7 @@ def format_label_Designation(code):
|
|
| 44 |
return ENCODING_MAP_Designation[code]
|
| 45 |
|
| 46 |
def format_label_ProductPitched(code):
|
| 47 |
-
return ENCODING_MAP_ProductPitched
|
| 48 |
|
| 49 |
def format_label_Passport(code):
|
| 50 |
return ENCODING_MAP_Passport[code]
|
|
@@ -97,9 +97,7 @@ input_data = pd.DataFrame([{'Age': Age,
|
|
| 97 |
'MonthlyIncome': MonthlyIncome,
|
| 98 |
'DurationOfPitch': DurationOfPitch,
|
| 99 |
'ProductPitched': ProductPitched,
|
| 100 |
-
'Designation': Designation
|
| 101 |
-
|
| 102 |
-
|
| 103 |
}])
|
| 104 |
|
| 105 |
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
from huggingface_hub import hf_hub_download
|
| 4 |
import joblib
|
|
|
|
| 44 |
return ENCODING_MAP_Designation[code]
|
| 45 |
|
| 46 |
def format_label_ProductPitched(code):
|
| 47 |
+
return ENCODING_MAP_ProductPitched[code]
|
| 48 |
|
| 49 |
def format_label_Passport(code):
|
| 50 |
return ENCODING_MAP_Passport[code]
|
|
|
|
| 97 |
'MonthlyIncome': MonthlyIncome,
|
| 98 |
'DurationOfPitch': DurationOfPitch,
|
| 99 |
'ProductPitched': ProductPitched,
|
| 100 |
+
'Designation': Designation
|
|
|
|
|
|
|
| 101 |
}])
|
| 102 |
|
| 103 |
|