Spaces:
Paused
Paused
Roger Condori commited on
Fixed version llama cpp python
Browse files4 unmodified lines56789101112131436 unmodified lines515253545556574 unmodified linesexcept:if torch.cuda.is_available():print("CUDA is available on this system.")os.system('CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 pip install llama-cpp-python --force-reinstall --upgrade --no-cache-dir --verbose')else:print("CUDA is not available on this system.")os.system('pip install llama-cpp-python')import gradio as grfrom langchain.embeddings.openai import OpenAIEmbeddings36 unmodified lines<div style="text-align: center;max-width: 1500px;"><h2>Chat with Documents 📚 - Falcon, Llama-2 and OpenAI</h2><p style="text-align: center;">Upload txt, pdf, doc, docx, enex, epub, html, md, odt, ptt and pttx.Wait for the Status to show Loaded documents, start typing your questions. Oficial Repository <a href="https://github.com/R3gm/ConversaDocs">ConversaDocs</a>.<br /></p></div>"""4 unmodified lines56789101112131436 unmodified lines515253545556574 unmodified linesexcept:if torch.cuda.is_available():print("CUDA is available on this system.")os.system('CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 pip install llama-cpp-python==0.1.78 --force-reinstall --upgrade --no-cache-dir --verbose')else:print("CUDA is not available on this system.")os.system('pip install llama-cpp-python==0.1.78')import gradio as grfrom langchain.embeddings.openai import OpenAIEmbeddings36 unmodified lines<div style="text-align: center;max-width: 1500px;"><h2>Chat with Documents 📚 - Falcon, Llama-2 and OpenAI</h2><p style="text-align: center;">Upload txt, pdf, doc, docx, enex, epub, html, md, odt, ptt and pttx.Wait for the Status to show Loaded documents, start typing your questions. This DEMO uses Falcon 7B, so the answers may not be optimal. You can use the Colab with GPU and Llama2 to have high-quality responses. Oficial Repository <a href="https://github.com/R3gm/ConversaDocs">ConversaDocs</a>.<br /></p></div>"""
app.py+3-3