juan commited on
Commit
209fce1
·
1 Parent(s): 14e6af4
Files changed (2) hide show
  1. app.py +3 -16
  2. requirements.txt +3 -7
app.py CHANGED
@@ -1,24 +1,14 @@
 
1
  import os
2
  import gradio as gr
3
- import pandas as pd
4
- import numpy as np
5
 
6
 
7
  from langchain_community.utilities import SQLDatabase
8
  from langchain_anthropic import ChatAnthropic
9
 
10
- from typing import Any
11
 
12
- from langchain_core.messages import ToolMessage
13
- from langchain_core.runnables import RunnableLambda, RunnableWithFallbacks
14
- from langgraph.prebuilt import ToolNode
15
- import pandas as pd
16
- import numpy as np
17
- from sqlalchemy import create_engine
18
  from langgraph.checkpoint.memory import InMemorySaver
19
- from langchain_core.runnables.history import RunnableWithMessageHistory
20
- from langchain_core.chat_history import InMemoryChatMessageHistory
21
- import json
22
  from langchain_community.agent_toolkits import SQLDatabaseToolkit
23
  from langchain.agents import create_agent
24
 
@@ -29,11 +19,8 @@ from scripts.uniprot import get_protein_location
29
  from scripts.db import create_database
30
  from scripts.utils import *
31
 
32
- import threading
33
- import time
34
- import random
35
- import subprocess
36
 
 
37
 
38
  DB_URI = "sqlite:///proteomics.db"
39
 
 
1
+
2
  import os
3
  import gradio as gr
 
 
4
 
5
 
6
  from langchain_community.utilities import SQLDatabase
7
  from langchain_anthropic import ChatAnthropic
8
 
 
9
 
10
+
 
 
 
 
 
11
  from langgraph.checkpoint.memory import InMemorySaver
 
 
 
12
  from langchain_community.agent_toolkits import SQLDatabaseToolkit
13
  from langchain.agents import create_agent
14
 
 
19
  from scripts.db import create_database
20
  from scripts.utils import *
21
 
 
 
 
 
22
 
23
+ #os.environ["OMP_NUM_THREADS"] = "1"
24
 
25
  DB_URI = "sqlite:///proteomics.db"
26
 
requirements.txt CHANGED
@@ -1,14 +1,10 @@
1
- unstructured
2
- bitsandbytes
3
- trl==0.4.7
4
- langchain==0.3.15
5
- langchain-community==0.3.15
6
  gradio
7
  nltk==3.9.1
8
- rank-bm25==0.2.2
9
  metapub
10
  langchain-experimental
11
- langgraph==0.4.0
12
  langchain-anthropic
13
  langgraph-checkpoint-sqlite
14
 
 
1
+ langchain
2
+ langchain-community
 
 
 
3
  gradio
4
  nltk==3.9.1
 
5
  metapub
6
  langchain-experimental
7
+ langgraph
8
  langchain-anthropic
9
  langgraph-checkpoint-sqlite
10