Update app.py
Browse files
app.py
CHANGED
|
@@ -2,8 +2,9 @@ import os
|
|
| 2 |
import torch
|
| 3 |
import streamlit as st
|
| 4 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
| 5 |
-
from
|
| 6 |
-
from langchain.
|
|
|
|
| 7 |
from langchain.agents import AgentExecutor, Tool, ZeroShotAgent
|
| 8 |
from langchain.memory import ConversationBufferMemory
|
| 9 |
import pandas as pd
|
|
|
|
| 2 |
import torch
|
| 3 |
import streamlit as st
|
| 4 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
| 5 |
+
from langchain_core.prompts import PromptTemplate
|
| 6 |
+
from langchain.chains import LLMChain
|
| 7 |
+
from langchain_community.llms import HuggingFacePipeline
|
| 8 |
from langchain.agents import AgentExecutor, Tool, ZeroShotAgent
|
| 9 |
from langchain.memory import ConversationBufferMemory
|
| 10 |
import pandas as pd
|