apexherbert200 commited on
Commit
dd2c937
·
1 Parent(s): d3fac2e

Worked on get_page function

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. 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", "webrify2:app", "--host", "0.0.0.0", "--port", "7860"]
 
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, timeout=30)
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: