acecalisto3 commited on
Commit
15086f5
·
verified ·
1 Parent(s): 6627d68

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +3 -3
prompts.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
  import os
3
- from langchain import PromptTemplate
4
- from langchain.chains import LLMChain
5
- from langchain.llms import HuggingFaceHub
6
 
7
  # Initialize Hugging Face API
8
  os.environ["HUGGINGFACEHUB_API_TOKEN"] = "hf_DDqJJHHhhjGGjjHUYTRewsRRFFGhjkKJHgfr"
 
1
  import gradio as gr
2
  import os
3
+ from langchain_core.prompts import PromptTemplate
4
+ from langchain_core.runnables import RunnableSequence
5
+ from langchain_huggingface import HuggingFaceEndpoint
6
 
7
  # Initialize Hugging Face API
8
  os.environ["HUGGINGFACEHUB_API_TOKEN"] = "hf_DDqJJHHhhjGGjjHUYTRewsRRFFGhjkKJHgfr"