Skip to content

Commit

Permalink
update api allowed origins
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssadsouza committed Jan 15, 2024
1 parent d10801b commit 8c83055
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

origins = [
"http://localhost:3000",
"https://rent-rite-hpcb.vercel.app/",
"https://rent-rite.vercel.app/",
]

app.add_middleware(
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ body {
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb)); */
@apply bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-rose-100/20 to-teal-100/20 dark:bg-slate-950
@apply bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-rose-100/25 to-teal-100/25 dark:bg-slate-950
}
5 changes: 3 additions & 2 deletions frontend/src/components/PredictPriceForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ export default function PricePredictForm({
<div className="max-w-lg flex flex-col gap-4 p-8 sm:overflow-y-auto sm:max-h-screen text-sm">
<h1 className="text-3xl font-medium">Rental Pricing Estimate</h1>
<p className="text-sm">
Provide the details for your rental unit listing and we&apos;ll give a price
prediction for a monthly rate based on this month&apos;s rental listings.
Provide the details for your rental unit listing and we&apos;ll give a
price prediction for a monthly rate based on this month&apos;s rental
listings.
</p>
<hr className="border-gray-300 dark:border-gray-600" />
<div className="flex items-center gap-4">
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

raw_filepath = f"{current_dir}/data/raw_data/{current_timestamp}_rental_listings.xlsx"
cleaned_filepath = f"{current_dir}/data/cleaned_data/{current_timestamp}_cleaned_listings.xlsx"
model_filepath = f"{current_dir}/backend/model.joblib"
model_filepath = f"{current_dir}/backend/app/model.joblib"
model_archive_filepath = f"{current_dir}/model/model_archives/{current_timestamp}_model.joblib"

# Extract raw data to acquire the rental listing data for the current month -----------------
Expand Down

1 comment on commit 8c83055

@vercel
Copy link

@vercel vercel bot commented on 8c83055 Jan 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.