Merge branch 'main' of https://huggingface.co/spaces/syntaxhacker/developer-portfolio-rag
Browse files- Dockerfile +2 -2
- start.sh +2 -2
Dockerfile
CHANGED
@@ -20,5 +20,5 @@ RUN chmod +x start.sh
|
|
20 |
# Expose HF Space port
|
21 |
EXPOSE 7860
|
22 |
|
23 |
-
# Run the FastAPI application
|
24 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
20 |
# Expose HF Space port
|
21 |
EXPOSE 7860
|
22 |
|
23 |
+
# Run the FastAPI application
|
24 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
start.sh
CHANGED
@@ -3,7 +3,7 @@ set -e # Exit on any error
|
|
3 |
|
4 |
echo "=== RAG Pipeline Startup ==="
|
5 |
echo "PORT environment variable: ${PORT:-'not set'}"
|
6 |
-
echo "Using port:
|
7 |
if [ -n "$GOOGLE_API_KEY" ]; then
|
8 |
echo "Google API Key present: Yes"
|
9 |
else
|
@@ -22,4 +22,4 @@ ls -la app/
|
|
22 |
echo "Testing Python import:"
|
23 |
python -c "import app.main; print('Import successful')" || echo "Import failed"
|
24 |
echo "Starting uvicorn..."
|
25 |
-
uvicorn app.main:app --host 0.0.0.0 --port
|
|
|
3 |
|
4 |
echo "=== RAG Pipeline Startup ==="
|
5 |
echo "PORT environment variable: ${PORT:-'not set'}"
|
6 |
+
echo "Using port: 7860"
|
7 |
if [ -n "$GOOGLE_API_KEY" ]; then
|
8 |
echo "Google API Key present: Yes"
|
9 |
else
|
|
|
22 |
echo "Testing Python import:"
|
23 |
python -c "import app.main; print('Import successful')" || echo "Import failed"
|
24 |
echo "Starting uvicorn..."
|
25 |
+
uvicorn rag_pipeline.app.main:app --host 0.0.0.0 --port 7860 --log-level info
|