Spaces:
Running on Zero
Running on Zero
FredinVázquez commited on
Commit ·
e7b5aac
1
Parent(s): 9bac645
revert changes for gpu use
Browse files- README.md +1 -1
- app.py +0 -3
- requirements.txt +4 -4
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🐠
|
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
python_version: '3.12'
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
|
|
|
| 4 |
colorFrom: pink
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 6.15.2
|
| 8 |
python_version: '3.12'
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
app.py
CHANGED
|
@@ -22,9 +22,6 @@ from src.ui.components import (
|
|
| 22 |
recipe_to_state,
|
| 23 |
)
|
| 24 |
from src.ui.theme import CSS, theme
|
| 25 |
-
import os
|
| 26 |
-
os.environ["GGML_CUDA"] = "0"
|
| 27 |
-
|
| 28 |
|
| 29 |
def on_propose(fridge_image: Image.Image | None, state: dict | None) -> tuple[str, str, list[str], dict]:
|
| 30 |
"""Photo → ingredients → 3 dish options."""
|
|
|
|
| 22 |
recipe_to_state,
|
| 23 |
)
|
| 24 |
from src.ui.theme import CSS, theme
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
def on_propose(fridge_image: Image.Image | None, state: dict | None) -> tuple[str, str, list[str], dict]:
|
| 27 |
"""Photo → ingredients → 3 dish options."""
|
requirements.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
# numpy
|
| 6 |
# pandas
|
| 7 |
# Pillow
|
|
|
|
| 1 |
+
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124
|
| 2 |
+
llama-cpp-python==0.3.19
|
| 3 |
+
gradio==6.15.2
|
| 4 |
+
huggingface_hub>=1.17
|
| 5 |
# numpy
|
| 6 |
# pandas
|
| 7 |
# Pillow
|