Spaces:
Runtime error
Runtime error
Chintan Donda
commited on
Commit
Β·
04e306a
1
Parent(s):
df5d57c
Moving kkms_kssw.py to src/
Browse files- app.py +2 -2
- {utils β src}/constants.py +1 -1
- {utils β src}/data_loader.py +1 -1
- kkms_kssw.py β src/kkms_kssw.py +6 -6
- {utils β src}/langchain_utils.py +3 -3
- {utils β src}/mandi_price.py +0 -0
- {utils β src}/ner_detection.py +0 -0
- {utils β src}/translator.py +1 -1
- {utils β src}/utils.py +0 -0
- {utils β src}/weather.py +0 -0
- {utils β src}/web_crawler.py +0 -0
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
2 |
import os
|
3 |
import datetime
|
4 |
|
5 |
-
import
|
6 |
-
import kkms_kssw as kkms_kssw
|
7 |
|
8 |
import warnings
|
9 |
warnings.filterwarnings('ignore')
|
|
|
2 |
import os
|
3 |
import datetime
|
4 |
|
5 |
+
import src.constants as constants_utils
|
6 |
+
import src.kkms_kssw as kkms_kssw
|
7 |
|
8 |
import warnings
|
9 |
warnings.filterwarnings('ignore')
|
{utils β src}/constants.py
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
import os
|
2 |
-
import
|
3 |
|
4 |
LOAD_FROM_EXISTING_INDEX_STORE = True
|
5 |
INDEX_TYPE = 'FAISS'
|
|
|
1 |
import os
|
2 |
+
import src.web_crawler as web_crawler_utils
|
3 |
|
4 |
LOAD_FROM_EXISTING_INDEX_STORE = True
|
5 |
INDEX_TYPE = 'FAISS'
|
{utils β src}/data_loader.py
RENAMED
@@ -10,7 +10,7 @@ from langchain.agents import initialize_agent, Tool
|
|
10 |
from langchain.llms import OpenAI
|
11 |
from langchain.chains.conversation.memory import ConversationBufferMemory
|
12 |
|
13 |
-
import
|
14 |
|
15 |
import logging
|
16 |
logger = logging.getLogger(__name__)
|
|
|
10 |
from langchain.llms import OpenAI
|
11 |
from langchain.chains.conversation.memory import ConversationBufferMemory
|
12 |
|
13 |
+
import src.utils as utils
|
14 |
|
15 |
import logging
|
16 |
logger = logging.getLogger(__name__)
|
kkms_kssw.py β src/kkms_kssw.py
RENAMED
@@ -1,11 +1,11 @@
|
|
1 |
import os
|
2 |
|
3 |
-
import
|
4 |
-
import
|
5 |
-
import
|
6 |
-
import
|
7 |
-
import
|
8 |
-
import
|
9 |
|
10 |
import logging
|
11 |
logger = logging.getLogger(__name__)
|
|
|
1 |
import os
|
2 |
|
3 |
+
import src.constants as constants_utils
|
4 |
+
import src.langchain_utils as langchain_utils
|
5 |
+
import src.weather as weather_utils
|
6 |
+
import src.mandi_price as mandi_utils
|
7 |
+
import src.translator as translator_utils
|
8 |
+
import src.web_crawler as web_crawler_utils
|
9 |
|
10 |
import logging
|
11 |
logger = logging.getLogger(__name__)
|
{utils β src}/langchain_utils.py
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
-
import
|
2 |
-
import
|
3 |
-
import
|
4 |
|
5 |
from langchain.llms import OpenAI
|
6 |
from langchain.text_splitter import CharacterTextSplitter, RecursiveCharacterTextSplitter
|
|
|
1 |
+
import src.constants as constants_utils
|
2 |
+
import src.data_loader as data_loader_utils
|
3 |
+
import src.utils as utils
|
4 |
|
5 |
from langchain.llms import OpenAI
|
6 |
from langchain.text_splitter import CharacterTextSplitter, RecursiveCharacterTextSplitter
|
{utils β src}/mandi_price.py
RENAMED
File without changes
|
{utils β src}/ner_detection.py
RENAMED
File without changes
|
{utils β src}/translator.py
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
import
|
2 |
import requests
|
3 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
4 |
from mosestokenizer import *
|
|
|
1 |
+
import src.constants as constants_utils
|
2 |
import requests
|
3 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
4 |
from mosestokenizer import *
|
{utils β src}/utils.py
RENAMED
File without changes
|
{utils β src}/weather.py
RENAMED
File without changes
|
{utils β src}/web_crawler.py
RENAMED
File without changes
|