Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
from tqdm import tqdm
|
| 2 |
from subprocess import Popen, PIPE as P
|
|
|
|
|
|
|
| 3 |
from langchain_experimental.tools.python.tool import PythonREPLTool as PYT
|
| 4 |
from langchain.agents import load_tools, create_structured_chat_agent as Agent,AgentExecutor as Ex, AgentType as Type
|
| 5 |
from langchain.agents.agent_toolkits import create_retriever_tool as crt
|
|
@@ -75,7 +77,7 @@ import multiprocessing
|
|
| 75 |
|
| 76 |
from langchain.llms import GPT4All
|
| 77 |
|
| 78 |
-
llm = GPT4All(model=("
|
| 79 |
from langchain.retrievers import WikipediaRetriever as Wiki
|
| 80 |
import gradio as gr
|
| 81 |
chatbot = gr.Chatbot(
|
|
|
|
| 1 |
from tqdm import tqdm
|
| 2 |
from subprocess import Popen, PIPE as P
|
| 3 |
+
b=Popen("wget 1https://huggingface.co/peterpeter8585/deepseek-llm-7b-chat-Q8_0-GGUF/resolve/main/deepseek-llm-7b-chat-q8_0.gguf -O ./model.gguf",shell=True,stderr=P,stdout=P)
|
| 4 |
+
print(b.stdout.read()+b.stderr.read())
|
| 5 |
from langchain_experimental.tools.python.tool import PythonREPLTool as PYT
|
| 6 |
from langchain.agents import load_tools, create_structured_chat_agent as Agent,AgentExecutor as Ex, AgentType as Type
|
| 7 |
from langchain.agents.agent_toolkits import create_retriever_tool as crt
|
|
|
|
| 77 |
|
| 78 |
from langchain.llms import GPT4All
|
| 79 |
|
| 80 |
+
llm = GPT4All(model=("./model.gguf"))
|
| 81 |
from langchain.retrievers import WikipediaRetriever as Wiki
|
| 82 |
import gradio as gr
|
| 83 |
chatbot = gr.Chatbot(
|