Spaces:
Sleeping
Sleeping
acecalisto3
commited on
Update prompts.py
Browse files- 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
|
|
|
|
|
|
|
|
|
|
|
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"
|