Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,6 @@ import gradio as gr
|
|
4 |
|
5 |
from openai import OpenAI
|
6 |
|
7 |
-
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
8 |
-
|
9 |
-
from langchain_community.document_loaders import PyPDFLoader
|
10 |
from langchain_community.embeddings.sentence_transformer import SentenceTransformerEmbeddings
|
11 |
from langchain_community.vectorstores import Chroma
|
12 |
|
@@ -85,7 +82,7 @@ interface = gr.Interface(
|
|
85 |
article="Note that questions that are not relevant to the Tesla 10-K report will not be answered.",
|
86 |
examples=[["What was the total revenue of the company in 2022?", "$ 81.46 Billion"],
|
87 |
["Summarize the Management Discussion and Analysis section of the 2021 report in 50 words.", ""],
|
88 |
-
["What
|
89 |
["Identify 5 key risks identified in the 2019 10k report? Respond with bullet point summaries.", ""]
|
90 |
]
|
91 |
)
|
|
|
4 |
|
5 |
from openai import OpenAI
|
6 |
|
|
|
|
|
|
|
7 |
from langchain_community.embeddings.sentence_transformer import SentenceTransformerEmbeddings
|
8 |
from langchain_community.vectorstores import Chroma
|
9 |
|
|
|
82 |
article="Note that questions that are not relevant to the Tesla 10-K report will not be answered.",
|
83 |
examples=[["What was the total revenue of the company in 2022?", "$ 81.46 Billion"],
|
84 |
["Summarize the Management Discussion and Analysis section of the 2021 report in 50 words.", ""],
|
85 |
+
["What was the company's debt level in 2020?", ""],
|
86 |
["Identify 5 key risks identified in the 2019 10k report? Respond with bullet point summaries.", ""]
|
87 |
]
|
88 |
)
|