Spaces:
Sleeping
Sleeping
Update main.py
Browse files21 unmodified lines2223242526272877 unmodified lines10610710810911011111211311411511611711811921 unmodified lines#Root endpoints@app.get("/")def root():return {"API": "AdressScrap"}def normalize_string(string):normalized_string = string.lower()77 unmodified lines@app.get('/AddressScrap')async def predict(address: str):try:results= google_address(addresses)results=results[['Address Input', 'Address Output','Match Percent','Website','Square Footage', 'Beds', 'Baths', 'Year Built','Link','Google Search Result', 'Description' ]]except:results= pd.DataFrame({'Address Input':[addresses]})return results21 unmodified lines2223242526272877 unmodified lines10610710810911011111211311411511611711811921 unmodified lines#Root endpoints@app.get("/")def root():return {"API": "Adress Scrap"}def normalize_string(string):normalized_string = string.lower()77 unmodified lines@app.get('/Address_Scrap')async def predict(address: str):try:results= google_address(address)results=results[['Address Input', 'Address Output','Match Percent','Website','Square Footage', 'Beds', 'Baths', 'Year Built','Link','Google Search Result', 'Description' ]]except:results= pd.DataFrame({'Address Input':[address]})return results
main.py+4-4