arpy8 commited on
Commit
da5ad0d
1 Parent(s): a79bc89

upadte api url

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -2
  2. app/main.py +1 -1
Dockerfile CHANGED
@@ -3,11 +3,13 @@ FROM python:3.11
3
  WORKDIR /code
4
 
5
  USER root
6
- ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
7
- RUN /install.sh && rm /install.sh
8
 
9
  COPY ./requirements.txt /code/requirements.txt
10
 
 
 
 
 
11
  RUN /root/.cargo/bin/uv pip install --system --no-cache -r requirements.txt
12
 
13
  COPY ./app /code/app
 
3
  WORKDIR /code
4
 
5
  USER root
 
 
6
 
7
  COPY ./requirements.txt /code/requirements.txt
8
 
9
+ ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
10
+
11
+ RUN /install.sh && rm /install.sh
12
+
13
  RUN /root/.cargo/bin/uv pip install --system --no-cache -r requirements.txt
14
 
15
  COPY ./app /code/app
app/main.py CHANGED
@@ -10,7 +10,7 @@ try:
10
  API_URL = os.getenv("API_URL")
11
  except Exception:
12
  print("Using hardcoded URL")
13
- API_URL = "https://camo.githubusercontent.com/37a440b0f0eea5e2e1c51101f9e751ea267d2e57bc0b79a241d52c7de547df45/68747470733a2f2f73706f746966792d6769746875622d70726f66696c652e76657263656c2e6170702f6170692f766965773f7569643d333134656e34696137656579636f37346876787036323534686d616d26636f7665725f696d6167653d74727565267468656d653d64656661756c742673686f775f6f66666c696e653d66616c7365266261636b67726f756e645f636f6c6f723d31323132313226696e7465726368616e67653d74727565266261725f636f6c6f723d346562313666266261725f636f6c6f725f636f7665723d74727565"
14
 
15
  def ist_time():
16
  ist_timezone = pytz.timezone('Asia/Kolkata')
 
10
  API_URL = os.getenv("API_URL")
11
  except Exception:
12
  print("Using hardcoded URL")
13
+ API_URL = "https://spotify-github-profile.kittinanx.com/api/view?uid=314en4ia7eeyco74hvxp6254hmam&cover_image=true&theme=default&show_offline=false&background_color=121212&interchange=true&bar_color_cover=true"
14
 
15
  def ist_time():
16
  ist_timezone = pytz.timezone('Asia/Kolkata')