Zulelee commited on
Commit
bfcfd60
1 Parent(s): 8107fc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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('/content/aitalents.csv')
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="Chatbot with Llama Hub and OpenAI")
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()