Spaces:
Sleeping
Sleeping
upadte api url
Browse files- Dockerfile +4 -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://
|
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')
|