Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Mapping for display names and actual model names
|
2 |
llm_display_names = {
|
3 |
"tiiuae/falcon-7b-instruct": "HundAI",
|
|
|
1 |
+
from datetime import datetime
|
2 |
+
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader
|
3 |
+
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
4 |
+
from llama_parse import LlamaParse
|
5 |
+
from llama_index.llms.huggingface_api import HuggingFaceInferenceAPI
|
6 |
+
import os
|
7 |
+
from dotenv import load_dotenv
|
8 |
+
import gradio as gr
|
9 |
+
import markdowm as md
|
10 |
+
import base64
|
11 |
+
|
12 |
+
# Load environment variables
|
13 |
+
load_dotenv()
|
14 |
+
|
15 |
# Mapping for display names and actual model names
|
16 |
llm_display_names = {
|
17 |
"tiiuae/falcon-7b-instruct": "HundAI",
|