Skip to content

Commit

Permalink
update app
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekkrthakur committed Feb 14, 2024
1 parent 2ec2f21 commit 4b8b7f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/autotrain/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ def fetch_models():
MODEL_CHOICE = fetch_models()

app = FastAPI()
attach_oauth(app)
if os.environ.get("SPACE_ID") != "autotrain-projects/autotrain-advanced":
attach_oauth(app)
static_path = os.path.join(BASE_DIR, "static")
app.mount("/static", StaticFiles(directory=static_path), name="static")
templates_path = os.path.join(BASE_DIR, "templates")
Expand Down

0 comments on commit 4b8b7f5

Please sign in to comment.