Spaces:
Sleeping
Sleeping
Pierre Chapuis commited on
bump deps
Browse files- .python-version +1 -1
- README.md +2 -3
- app.py +6 -3
- pyproject.toml +5 -5
- requirements.txt +2 -1
- uv.lock +0 -0
.python-version
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
3.
|
|
|
|
| 1 |
+
3.12.12
|
README.md
CHANGED
|
@@ -4,14 +4,13 @@ emoji: 💡
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
-
python_version: 3.12
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
license: other
|
| 12 |
short_description: Instantly turn lamps on in your images
|
| 13 |
tags:
|
| 14 |
-
- refiners
|
| 15 |
- image-to-image
|
| 16 |
---
|
| 17 |
|
|
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 6.20.0
|
| 8 |
+
python_version: 3.12.12
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
license: other
|
| 12 |
short_description: Instantly turn lamps on in your images
|
| 13 |
tags:
|
|
|
|
| 14 |
- image-to-image
|
| 15 |
---
|
| 16 |
|
app.py
CHANGED
|
@@ -54,9 +54,12 @@ TITLE = """
|
|
| 54 |
<p>
|
| 55 |
Instantly turn lamps on in your images.
|
| 56 |
</p><p>
|
| 57 |
-
This Space showcases one of Finegrain's earlier generative AI models. Today, we're building the
|
|
|
|
|
|
|
| 58 |
</p><p>
|
| 59 |
-
✨ Learn more at <a href="https://finegrain.ai">finegrain.ai</a>
|
|
|
|
| 60 |
</p>
|
| 61 |
"""
|
| 62 |
|
|
@@ -79,7 +82,7 @@ with gr.Blocks() as demo:
|
|
| 79 |
input_image = gr.Image(type="pil", label="Input Image")
|
| 80 |
run_button = gr.ClearButton(components=None, value=random.choice(BUTTON_LABELS))
|
| 81 |
with gr.Column():
|
| 82 |
-
output_slider = gr.ImageSlider(label="Before / After", max_height=1500,
|
| 83 |
run_button.add(output_slider)
|
| 84 |
|
| 85 |
with gr.Accordion("Advanced Options", open=False):
|
|
|
|
| 54 |
<p>
|
| 55 |
Instantly turn lamps on in your images.
|
| 56 |
</p><p>
|
| 57 |
+
This Space showcases one of Finegrain's earlier generative AI models. Today, we're building the
|
| 58 |
+
Agentic Camera: an on-device system that produces the intended photo at capture time, eliminating
|
| 59 |
+
image editing in most cases.
|
| 60 |
</p><p>
|
| 61 |
+
✨ Learn more at <a href="https://finegrain.ai">finegrain.ai</a>
|
| 62 |
+
or follow <a href="https://huggingface.co/finegrain">Finegrain</a> for updates.
|
| 63 |
</p>
|
| 64 |
"""
|
| 65 |
|
|
|
|
| 82 |
input_image = gr.Image(type="pil", label="Input Image")
|
| 83 |
run_button = gr.ClearButton(components=None, value=random.choice(BUTTON_LABELS))
|
| 84 |
with gr.Column():
|
| 85 |
+
output_slider = gr.ImageSlider(label="Before / After", max_height=1500, buttons=["download"])
|
| 86 |
run_button.add(output_slider)
|
| 87 |
|
| 88 |
with gr.Accordion("Advanced Options", open=False):
|
pyproject.toml
CHANGED
|
@@ -6,21 +6,21 @@ authors = [
|
|
| 6 |
{ name = "Pierre Chapuis", email = "pierre@lagon.tech" }
|
| 7 |
]
|
| 8 |
dependencies = [
|
| 9 |
-
"gradio>=
|
| 10 |
"pillow>=11.3.0",
|
| 11 |
"spaces>=0.29.3",
|
| 12 |
"numpy<2.0.0",
|
| 13 |
"pi-heif>=1.1.0",
|
| 14 |
"diffusers>=0.35.1",
|
| 15 |
"accelerate>=1.10.1",
|
| 16 |
-
"
|
|
|
|
| 17 |
]
|
| 18 |
-
|
| 19 |
-
requires-python = ">= 3.10"
|
| 20 |
|
| 21 |
[tool.ruff]
|
| 22 |
line-length = 120
|
| 23 |
-
target-version = "
|
| 24 |
|
| 25 |
[tool.ruff.lint]
|
| 26 |
select = [
|
|
|
|
| 6 |
{ name = "Pierre Chapuis", email = "pierre@lagon.tech" }
|
| 7 |
]
|
| 8 |
dependencies = [
|
| 9 |
+
"gradio>=6.20.0",
|
| 10 |
"pillow>=11.3.0",
|
| 11 |
"spaces>=0.29.3",
|
| 12 |
"numpy<2.0.0",
|
| 13 |
"pi-heif>=1.1.0",
|
| 14 |
"diffusers>=0.35.1",
|
| 15 |
"accelerate>=1.10.1",
|
| 16 |
+
"torch==2.11.0",
|
| 17 |
+
"finegrain_toolbox @ git+https://github.com/finegrain-ai/finegrain-toolbox@2b2af64",
|
| 18 |
]
|
| 19 |
+
requires-python = ">= 3.12"
|
|
|
|
| 20 |
|
| 21 |
[tool.ruff]
|
| 22 |
line-length = 120
|
| 23 |
+
target-version = "py312"
|
| 24 |
|
| 25 |
[tool.ruff.lint]
|
| 26 |
select = [
|
requirements.txt
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
spaces>=0.35.0
|
| 2 |
diffusers>=0.35.0
|
| 3 |
-
git+https://github.com/finegrain-ai/finegrain-toolbox@
|
| 4 |
numpy<2.0.0
|
| 5 |
pillow>=11.3.0
|
| 6 |
pi_heif>=1.1.0
|
| 7 |
accelerate>=1.3.0
|
|
|
|
|
|
| 1 |
spaces>=0.35.0
|
| 2 |
diffusers>=0.35.0
|
| 3 |
+
git+https://github.com/finegrain-ai/finegrain-toolbox@2b2af64
|
| 4 |
numpy<2.0.0
|
| 5 |
pillow>=11.3.0
|
| 6 |
pi_heif>=1.1.0
|
| 7 |
accelerate>=1.3.0
|
| 8 |
+
torch==2.11.0
|
uv.lock
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|