Spaces:
Runtime error
Runtime error
update
Browse files- app.py +5 -2
- tool_server.py +4 -1
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
-
from
|
3 |
-
from
|
4 |
from langchain.schema import AgentFinish
|
5 |
import os
|
6 |
import requests
|
|
|
1 |
+
import sys
|
2 |
+
sys.path.append("BMTools/")
|
3 |
+
|
4 |
import gradio as gr
|
5 |
+
from bmtools.agent.tools_controller import MTQuestionAnswerer, load_valid_tools
|
6 |
+
from bmtools.agent.singletool import STQuestionAnswerer
|
7 |
from langchain.schema import AgentFinish
|
8 |
import os
|
9 |
import requests
|
tool_server.py
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
-
import
|
|
|
|
|
|
|
2 |
import os
|
3 |
|
4 |
def run_tool_server():
|
|
|
1 |
+
import sys
|
2 |
+
sys.path.append("BMTools/")
|
3 |
+
|
4 |
+
import bmtools
|
5 |
import os
|
6 |
|
7 |
def run_tool_server():
|