Spaces:
Sleeping
Sleeping
berkaygkv54
commited on
Commit
•
ee00a52
1
Parent(s):
24510fe
llm bugfix
Browse files- app.py +1 -1
- requirements.txt +3 -1
- src/laion_clap/inference.py +0 -2
- src/llm/chain.py +1 -2
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from streamlit import session_state as session
|
3 |
from src.laion_clap.inference import AudioEncoder
|
4 |
-
from src.utils.spotify import SpotifyHandler, SpotifyAuthentication
|
5 |
import pandas as pd
|
6 |
from dotenv import load_dotenv
|
7 |
from langchain.llms import CTransformers, Ollama
|
|
|
1 |
import streamlit as st
|
2 |
from streamlit import session_state as session
|
3 |
from src.laion_clap.inference import AudioEncoder
|
4 |
+
# from src.utils.spotify import SpotifyHandler, SpotifyAuthentication
|
5 |
import pandas as pd
|
6 |
from dotenv import load_dotenv
|
7 |
from langchain.llms import CTransformers, Ollama
|
requirements.txt
CHANGED
@@ -87,4 +87,6 @@ wandb==0.16.0
|
|
87 |
webdataset==0.2.77
|
88 |
wget==3.2
|
89 |
youtube-search-python==1.6.6
|
90 |
-
python-dotenv
|
|
|
|
|
|
87 |
webdataset==0.2.77
|
88 |
wget==3.2
|
89 |
youtube-search-python==1.6.6
|
90 |
+
python-dotenv
|
91 |
+
langchain
|
92 |
+
pymongo
|
src/laion_clap/inference.py
CHANGED
@@ -2,8 +2,6 @@ from tqdm import tqdm
|
|
2 |
import librosa
|
3 |
import torch
|
4 |
from src import laion_clap
|
5 |
-
import json
|
6 |
-
import jmespath
|
7 |
from ..config.configs import ProjectPaths
|
8 |
|
9 |
|
|
|
2 |
import librosa
|
3 |
import torch
|
4 |
from src import laion_clap
|
|
|
|
|
5 |
from ..config.configs import ProjectPaths
|
6 |
|
7 |
|
src/llm/chain.py
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
-
from langchain.prompts import ChatPromptTemplate
|
2 |
from langchain.schema.runnable import RunnableLambda
|
3 |
from operator import itemgetter
|
4 |
from langchain.output_parsers import PydanticOutputParser
|
5 |
from .output_parser import SongDescriptions
|
6 |
from langchain.llms.base import LLM
|
7 |
-
import json
|
8 |
|
9 |
|
10 |
class LLMChain:
|
|
|
1 |
+
from langchain.prompts import ChatPromptTemplate
|
2 |
from langchain.schema.runnable import RunnableLambda
|
3 |
from operator import itemgetter
|
4 |
from langchain.output_parsers import PydanticOutputParser
|
5 |
from .output_parser import SongDescriptions
|
6 |
from langchain.llms.base import LLM
|
|
|
7 |
|
8 |
|
9 |
class LLMChain:
|