Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
from pathlib import Path
|
|
|
|
|
|
|
|
|
4 |
import argparse
|
5 |
model_file = "yi-6b.Q4_0.gguf"
|
6 |
if not os.path.isfile(model_file):
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
from pathlib import Path
|
4 |
+
|
5 |
+
os.environment["CMAKE_ARGS"] = "-DLLAMA_CUBLAS=on"
|
6 |
+
os.system('CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python[server]')
|
7 |
+
|
8 |
import argparse
|
9 |
model_file = "yi-6b.Q4_0.gguf"
|
10 |
if not os.path.isfile(model_file):
|