acecalisto3 commited on
Commit
7c243b8
·
verified ·
1 Parent(s): dd12c93

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +6 -1
prompts.py CHANGED
@@ -2,7 +2,12 @@ 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_token"
 
2
  import os
3
  from langchain_core.prompts import PromptTemplate
4
  from langchain_core.runnables import RunnableSequence
5
+ from langchain_community.llms import HuggingFaceEndpoint
6
+ from huggingface_hub.inference_api import InferenceApi as InferenceClient
7
+
8
+ import streamlit as st
9
+
10
+ from prompts import (
11
 
12
  # Initialize Hugging Face API
13
  os.environ["HUGGINGFACEHUB_API_TOKEN"] = "hf_token"