Commit
·
dd2c937
1
Parent(s):
d3fac2e
Worked on get_page function
Browse files- Dockerfile +1 -1
- dashboard.py +1 -1
Dockerfile
CHANGED
@@ -53,4 +53,4 @@ RUN python -m playwright install chromium
|
|
53 |
EXPOSE 7860
|
54 |
|
55 |
# Run the FastAPI application
|
56 |
-
CMD ["python", "-m", "uvicorn", "
|
|
|
53 |
EXPOSE 7860
|
54 |
|
55 |
# Run the FastAPI application
|
56 |
+
CMD ["python", "-m", "uvicorn", "webrify:app", "--host", "0.0.0.0", "--port", "7860"]
|
dashboard.py
CHANGED
@@ -94,7 +94,7 @@ def validate_url(url):
|
|
94 |
# API request function with error handling
|
95 |
def make_api_request(endpoint, params):
|
96 |
try:
|
97 |
-
response = requests.get(f"{API_BASE}/{endpoint}", params=params
|
98 |
response.raise_for_status()
|
99 |
return response.json(), None
|
100 |
except requests.exceptions.Timeout:
|
|
|
94 |
# API request function with error handling
|
95 |
def make_api_request(endpoint, params):
|
96 |
try:
|
97 |
+
response = requests.get(f"{API_BASE}/{endpoint}", params=params)
|
98 |
response.raise_for_status()
|
99 |
return response.json(), None
|
100 |
except requests.exceptions.Timeout:
|