Spaces:
Runtime error
Runtime error
Removed Langchain dependency
Browse files
pages/1_Prompt Engineering.py
CHANGED
@@ -2,8 +2,8 @@ import streamlit as st
|
|
2 |
from openai import OpenAI
|
3 |
import torch
|
4 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
5 |
-
from langchain.llms import HuggingFacePipeline
|
6 |
-
from langchain import PromptTemplate, LLMChain
|
7 |
# @st.cache_resource
|
8 |
# def init_Phi2():
|
9 |
# torch.random.manual_seed(0)
|
|
|
2 |
from openai import OpenAI
|
3 |
import torch
|
4 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
5 |
+
#from langchain.llms import HuggingFacePipeline
|
6 |
+
#from langchain import PromptTemplate, LLMChain
|
7 |
# @st.cache_resource
|
8 |
# def init_Phi2():
|
9 |
# torch.random.manual_seed(0)
|