Spaces:
Sleeping
Sleeping
mattritchey
commited on
Commit
·
b47ed82
1
Parent(s):
82589e9
Update main.py
Browse files
main.py
CHANGED
@@ -131,11 +131,11 @@ def process_multiple_address(addresses):
|
|
131 |
async def predict(address_input: str):
|
132 |
|
133 |
address_input_split = address_input.split(';')
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
return
|
139 |
|
140 |
|
141 |
|
|
|
131 |
async def predict(address_input: str):
|
132 |
|
133 |
address_input_split = address_input.split(';')
|
134 |
+
results = process_multiple_address(address_input_split)
|
135 |
+
results = pd.concat(results).reset_index(drop=1)
|
136 |
+
prediction = results[['Address Input', 'Address Output', 'Match Percent', 'Website', 'Square Footage', 'Beds', 'Baths', 'Year Built',
|
137 |
+
'Link', 'Google Search Result', 'Description']]
|
138 |
+
return prediction.to_json()
|
139 |
|
140 |
|
141 |
|