Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ openai.api_key = os.getenv('OPENAI_API_KEY')
|
|
9 |
def load_data():
|
10 |
try:
|
11 |
loader = PagedCSVReader()
|
12 |
-
documents = loader.load_data('
|
13 |
index = VectorStoreIndex.from_documents(documents)
|
14 |
query_engine = index.as_query_engine()
|
15 |
return query_engine
|
@@ -31,7 +31,7 @@ def chat(message):
|
|
31 |
return "I'm still learning how to answer that question. Please try asking something else."
|
32 |
|
33 |
# Create the chatbot interface
|
34 |
-
interface = gr.ChatInterface(fn=chat, title="
|
35 |
|
36 |
# Launch the interface
|
37 |
interface.launch()
|
|
|
9 |
def load_data():
|
10 |
try:
|
11 |
loader = PagedCSVReader()
|
12 |
+
documents = loader.load_data('aitalents.csv')
|
13 |
index = VectorStoreIndex.from_documents(documents)
|
14 |
query_engine = index.as_query_engine()
|
15 |
return query_engine
|
|
|
31 |
return "I'm still learning how to answer that question. Please try asking something else."
|
32 |
|
33 |
# Create the chatbot interface
|
34 |
+
interface = gr.ChatInterface(fn=chat, title="AI Talent Matchmaker")
|
35 |
|
36 |
# Launch the interface
|
37 |
interface.launch()
|