Spaces:
Running
on
A100
Running
on
A100
fix: requirements
Browse files- app.py +7 -3
- requirements.txt +0 -3
app.py
CHANGED
|
@@ -7,9 +7,13 @@ It imports and uses the existing v1.5 Gradio implementation without modification
|
|
| 7 |
import os
|
| 8 |
import sys
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
# Disable Gradio analytics
|
| 15 |
os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"
|
|
|
|
| 7 |
import os
|
| 8 |
import sys
|
| 9 |
|
| 10 |
+
# Get current directory (app.py location)
|
| 11 |
+
current_dir = os.path.dirname(os.path.abspath(__file__))
|
| 12 |
+
|
| 13 |
+
# Add nano-vllm to Python path (local package)
|
| 14 |
+
nano_vllm_path = os.path.join(current_dir, "acestep", "third_parts", "nano-vllm")
|
| 15 |
+
if os.path.exists(nano_vllm_path):
|
| 16 |
+
sys.path.insert(0, nano_vllm_path)
|
| 17 |
|
| 18 |
# Disable Gradio analytics
|
| 19 |
os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"
|
requirements.txt
CHANGED
|
@@ -38,6 +38,3 @@ xxhash
|
|
| 38 |
# HuggingFace Space required
|
| 39 |
spaces
|
| 40 |
huggingface_hub>=0.20.0
|
| 41 |
-
|
| 42 |
-
# Local nano-vllm package
|
| 43 |
-
-e acestep/third_parts/nano-vllm
|
|
|
|
| 38 |
# HuggingFace Space required
|
| 39 |
spaces
|
| 40 |
huggingface_hub>=0.20.0
|
|
|
|
|
|
|
|
|