Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from llama_index.core import StorageContext, load_index_from_storage, VectorStoreIndex, SimpleDirectoryReader, ChatPromptTemplate
|
| 3 |
from llama_index.llms.huggingface import HuggingFaceInferenceAPI
|
| 4 |
-
from dotenv import load_dotenv
|
| 5 |
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
| 6 |
from llama_index.core import Settings
|
| 7 |
from youtube_transcript_api import YouTubeTranscriptApi
|
|
@@ -9,8 +8,6 @@ import shutil
|
|
| 9 |
import os
|
| 10 |
import time
|
| 11 |
|
| 12 |
-
# Load environment variables
|
| 13 |
-
load_dotenv()
|
| 14 |
|
| 15 |
icons = {"assistant": "robot.png", "user": "man-kddi.png"}
|
| 16 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from llama_index.core import StorageContext, load_index_from_storage, VectorStoreIndex, SimpleDirectoryReader, ChatPromptTemplate
|
| 3 |
from llama_index.llms.huggingface import HuggingFaceInferenceAPI
|
|
|
|
| 4 |
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
| 5 |
from llama_index.core import Settings
|
| 6 |
from youtube_transcript_api import YouTubeTranscriptApi
|
|
|
|
| 8 |
import os
|
| 9 |
import time
|
| 10 |
|
|
|
|
|
|
|
| 11 |
|
| 12 |
icons = {"assistant": "robot.png", "user": "man-kddi.png"}
|
| 13 |
|