Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,13 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from langchain import HuggingFaceHub
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# Function to return the response from Hugging Face model
|
| 8 |
def load_answer(question):
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from langchain import HuggingFaceHub
|
| 3 |
|
| 4 |
+
|
| 5 |
+
load_dotenv()
|
| 6 |
+
|
| 7 |
+
# Set your Hugging Face API token from the environment variable
|
| 8 |
+
HUGGINGFACE_API_TOKEN = os.getenv("HUGGINGFACE_API_TOKEN")
|
| 9 |
+
|
| 10 |
+
|
| 11 |
|
| 12 |
# Function to return the response from Hugging Face model
|
| 13 |
def load_answer(question):
|