Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -9,8 +9,8 @@ from langchain.schema.output_parser import StrOutputParser
|
|
| 9 |
app = Flask(__name__)
|
| 10 |
|
| 11 |
# Download model
|
| 12 |
-
if not os.path.exists('phi-2.Q4_K_M.gguf'):
|
| 13 |
-
|
| 14 |
|
| 15 |
# Disable GPU usage
|
| 16 |
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
|
|
|
|
| 9 |
app = Flask(__name__)
|
| 10 |
|
| 11 |
# Download model
|
| 12 |
+
# if not os.path.exists('phi-2.Q4_K_M.gguf'):
|
| 13 |
+
# os.system('wget https://huggingface.co/TheBloke/phi-2-GGUF/resolve/main/phi-2.Q4_K_M.gguf')
|
| 14 |
|
| 15 |
# Disable GPU usage
|
| 16 |
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
|