Spaces:
Runtime error
Runtime error
AngelaKkkkkkkkk
commited on
Commit
•
301751c
1
Parent(s):
f3b6d6e
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,11 @@
|
|
1 |
-
|
2 |
-
vllm serve "Tann-dev/sex-chat-dirty-girlfriend"
|
3 |
|
4 |
-
#
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
1 |
+
import subprocess
|
|
|
2 |
|
3 |
+
# Check if vllm is installed
|
4 |
+
try:
|
5 |
+
result = subprocess.run(["pip", "show", "vllm"], capture_output=True, text=True)
|
6 |
+
if "Name: vllm" in result.stdout:
|
7 |
+
print("vllm is installed!")
|
8 |
+
else:
|
9 |
+
print("vllm is not installed!")
|
10 |
+
except Exception as e:
|
11 |
+
print(f"Error checking vllm installation: {e}")
|