Spaces:
Running
on
Zero
Running
on
Zero
carpelan
commited on
Commit
·
d30cc33
1
Parent(s):
3d182b0
matomo bug
Browse files- .github/README.md +0 -6
- app/main.py +2 -4
- uv.lock +21 -21
.github/README.md
CHANGED
@@ -88,7 +88,6 @@ uv pip install -e .
|
|
88 |
|
89 |
#### 6. Running the Application Locally (dev)
|
90 |
|
91 |
-
|
92 |
For "hot reload" when developing, launch the Gradio demo by running:
|
93 |
|
94 |
```bash
|
@@ -109,11 +108,6 @@ Then open your web browser and navigate to `http://localhost:7860` (or the addre
|
|
109 |
|
110 |
## Running with Docker
|
111 |
|
112 |
-
Please remove this line in dockerfile, when running locally:
|
113 |
-
```sh
|
114 |
-
ENV PYTHONUNBUFFERED=1 \
|
115 |
-
SYSTEM=spaces \
|
116 |
-
```
|
117 |
|
118 |
### Locally with Docker
|
119 |
|
|
|
88 |
|
89 |
#### 6. Running the Application Locally (dev)
|
90 |
|
|
|
91 |
For "hot reload" when developing, launch the Gradio demo by running:
|
92 |
|
93 |
```bash
|
|
|
108 |
|
109 |
## Running with Docker
|
110 |
|
|
|
|
|
|
|
|
|
|
|
111 |
|
112 |
### Locally with Docker
|
113 |
|
app/main.py
CHANGED
@@ -36,6 +36,7 @@ def activate_tab(collection):
|
|
36 |
return gr.update(interactive=collection is not None)
|
37 |
|
38 |
|
|
|
39 |
matomo = """
|
40 |
<!-- Matomo -->
|
41 |
<script>
|
@@ -57,14 +58,11 @@ matomo = """
|
|
57 |
<!-- End Matomo Code -->
|
58 |
"""
|
59 |
|
60 |
-
system_env = os.getenv("SYSTEM", "local")
|
61 |
-
head_content = matomo if system_env == "spaces" else None
|
62 |
-
|
63 |
with gr.Blocks(
|
64 |
title="HTRflow",
|
65 |
theme=theme,
|
66 |
css=css,
|
67 |
-
head=
|
68 |
) as demo:
|
69 |
|
70 |
gr.Markdown(load_markdown(None, "main_title"))
|
|
|
36 |
return gr.update(interactive=collection is not None)
|
37 |
|
38 |
|
39 |
+
# Please remove this line when running locally
|
40 |
matomo = """
|
41 |
<!-- Matomo -->
|
42 |
<script>
|
|
|
58 |
<!-- End Matomo Code -->
|
59 |
"""
|
60 |
|
|
|
|
|
|
|
61 |
with gr.Blocks(
|
62 |
title="HTRflow",
|
63 |
theme=theme,
|
64 |
css=css,
|
65 |
+
head=matomo,
|
66 |
) as demo:
|
67 |
|
68 |
gr.Markdown(load_markdown(None, "main_title"))
|
uv.lock
CHANGED
@@ -2820,27 +2820,27 @@ wheels = [
|
|
2820 |
|
2821 |
[[package]]
|
2822 |
name = "uv"
|
2823 |
-
version = "0.
|
2824 |
-
source = { registry = "https://pypi.org/simple" }
|
2825 |
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
2826 |
-
wheels = [
|
2827 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2828 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2829 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2830 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2831 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2832 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2833 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2834 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2835 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2836 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2837 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2838 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2839 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2840 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2841 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2842 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2843 |
-
{ url = "https://files.pythonhosted.org/packages/
|
2844 |
]
|
2845 |
|
2846 |
[[package]]
|
|
|
2820 |
|
2821 |
[[package]]
|
2822 |
name = "uv"
|
2823 |
+
version = "0.6.0"
|
2824 |
+
source = { registry = "https://pypi.org/simple" }
|
2825 |
+
sdist = { url = "https://files.pythonhosted.org/packages/7d/63/321ab82ff5f5c665ca9aeef20150d12775f32386a240eda045cf8f51c8bc/uv-0.6.0.tar.gz", hash = "sha256:7dc1f1050b89537ee8ac66ef532a05fe822293d788b6754db729e1b4b3be062a", size = 2879792 }
|
2826 |
+
wheels = [
|
2827 |
+
{ url = "https://files.pythonhosted.org/packages/4e/44/b241637dae9d8d37dda7698ab6c2ef657d20162e99ee78ecd73f7366665d/uv-0.6.0-py3-none-linux_armv6l.whl", hash = "sha256:b56235a98d81b156052f4e8d436ebeba60687a91113aeeebab310a8d5998cd68", size = 15461279 },
|
2828 |
+
{ url = "https://files.pythonhosted.org/packages/f2/9e/2695331ac5187a74940870ba9400d207a0d593dd5a0417de6fffa5246b3e/uv-0.6.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:5dca405337e5b62b3172335fc8a5e627c9f07cedc87c8ff595199b847b0b877f", size = 15621660 },
|
2829 |
+
{ url = "https://files.pythonhosted.org/packages/6d/c3/c1e81bfdd3414492650ca2647dbb466bb9e0063ee71020dc49f5f011f9ac/uv-0.6.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:26d655adf59ec088f07a2459de3f5e0565e8f84f389bfe936a354e5e169dfc8f", size = 14511660 },
|
2830 |
+
{ url = "https://files.pythonhosted.org/packages/2c/7c/59939f2c704eee7a1b5f58814970e46527668e51ad715f1466a6793edee4/uv-0.6.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl", hash = "sha256:7dbdaf1c99df5b78fd39ced7ede967aa596ecf4f9d0bee8deb182d4e160dd488", size = 14938907 },
|
2831 |
+
{ url = "https://files.pythonhosted.org/packages/6e/9d/fb0278d0655da86b1f5301e3f4a85d0cac6875eedf8c06960493791e22c0/uv-0.6.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f620509b75285b216f855ddd16126f4d8868ff8cd44a518e6f9ec917d8ac3ceb", size = 15193019 },
|
2832 |
+
{ url = "https://files.pythonhosted.org/packages/dd/0f/c271840728449bc00a155c141fdb22cc4bcd1c6b23fbc353ba5ad316286a/uv-0.6.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a51a09e1d06ac677f4cc478fdd73d6d243a7e71d542174e75748c9843406f483", size = 15947047 },
|
2833 |
+
{ url = "https://files.pythonhosted.org/packages/20/0d/4fdfe36e6409af7d61b502c325dbb9fb0d2487c29fccf9f55a3652759607/uv-0.6.0-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:b3829d82e0dd37de375b5d9ee8485731465e255e61557f4df798e3324cf306cd", size = 16886229 },
|
2834 |
+
{ url = "https://files.pythonhosted.org/packages/fd/41/a7d3ae81e5f200f7dd339dabe9c81bf6ff0182a67d03d7fc712bc6ad9542/uv-0.6.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ec09034b7d5ba255fc80e5bec2a3f2ff3a40bdaea3c10a056e2fb3aeceb94d94", size = 16593590 },
|
2835 |
+
{ url = "https://files.pythonhosted.org/packages/45/cb/acda84c40d4679bfe3a539b9f17ef648969688b407c1391c6e168f3a25a9/uv-0.6.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c986ce9c02beccc08ab8ebdaf05a5540af4fd361f15049cdabdd2fee3d26afb9", size = 20926831 },
|
2836 |
+
{ url = "https://files.pythonhosted.org/packages/17/6e/8af7aa224d20ea9d40c751df318887e533de4feb970d76134a151d1f4137/uv-0.6.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cd09c6b7ff1742aca07ad4805ef491eb91b03e4b0815a230076381900061f4a7", size = 16256572 },
|
2837 |
+
{ url = "https://files.pythonhosted.org/packages/f4/43/7b9def0e832be06e6da2c37f0e845eb554e2591c019a82644f6add9087e7/uv-0.6.0-py3-none-manylinux_2_28_aarch64.whl", hash = "sha256:18c481de419bf7d77243fb9f79dba2f06510008b4b451e2db23c6a8e3c269970", size = 15210365 },
|
2838 |
+
{ url = "https://files.pythonhosted.org/packages/e4/ca/e439a34379b09c8486cea97ef6e9c9ac84c75d415141bbae785fa31fd9c5/uv-0.6.0-py3-none-musllinux_1_1_armv7l.whl", hash = "sha256:2e6ae77ab255f5732e8dd7bfe51128955cc863c8b478c842fbebce31111f403e", size = 15201279 },
|
2839 |
+
{ url = "https://files.pythonhosted.org/packages/7c/1b/8487406c3a4ff1d326764e7f7e7b529dadfe789e47ba9327f77fb2df32b3/uv-0.6.0-py3-none-musllinux_1_1_i686.whl", hash = "sha256:d8d9b7747b8125fafd12ce72a06a5df22c12f19eb34dc809705304cbf9f4ba45", size = 15571125 },
|
2840 |
+
{ url = "https://files.pythonhosted.org/packages/92/3c/ac38d15db45a01e831214d50521eb2b2d78d465a6575a0bb4d9a89edae80/uv-0.6.0-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:967e5e76910f22f0fc03dc60913e16b37f5c90a5f173830c6566f13a34bca22e", size = 16370602 },
|
2841 |
+
{ url = "https://files.pythonhosted.org/packages/43/68/229b623e96e6d83a7a8078ecd4c90b1ccff071a8a3b0153bfa40213298b8/uv-0.6.0-py3-none-win32.whl", hash = "sha256:10eb10c88a9837d68dd3d7deef66b31c22b3d6984175ade0702c60f04b804d68", size = 15566123 },
|
2842 |
+
{ url = "https://files.pythonhosted.org/packages/5c/93/f7699bd6774a969625717f7e687b37f21ca63b6015c361d2eba073160f19/uv-0.6.0-py3-none-win_amd64.whl", hash = "sha256:e9f7041131e6f1abd4e91f94143e31f5022d71e6f388976c62e5016eaa676f5d", size = 16918420 },
|
2843 |
+
{ url = "https://files.pythonhosted.org/packages/13/ea/f40a874d32e4e74ec62799ed83df840187c7062855ed16e51cb2dabe807a/uv-0.6.0-py3-none-win_arm64.whl", hash = "sha256:32af3ab683aa3e630fbb4f069637445488770a6722f8d97aaae7f0032d32b68f", size = 15801705 },
|
2844 |
]
|
2845 |
|
2846 |
[[package]]
|