Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

run_api.sh 356 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  1. #!/bin/bash
  2. # Make the script executable
  3. chmod +x setup_dvc.sh
  4. # Check if model exists
  5. if [ ! -f "artifact/model_trainer/model/model.pkl" ]; then
  6. echo "Model not found. Running the pipeline first..."
  7. python main.py
  8. fi
  9. # Start the FastAPI application
  10. echo "Starting the FastAPI application..."
  11. uvicorn app:app --host 0.0.0.0 --port 8000 --reload
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...