facehugger92 commited on
Commit
56bdf54
·
verified ·
1 Parent(s): 98e5880

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -7,7 +7,6 @@ from llama_index.core.node_parser import SentenceSplitter
7
  from llama_index.llms.openai import OpenAI
8
  import gradio as gr
9
  import os
10
- from Config import openai_key
11
 
12
  """
13
  Code adopted from Beebom article: "How to Train an AI Chatbot With Custom Knowledge Base Using ChatGPT API" by Arjun Sha
@@ -20,8 +19,6 @@ num_outputs = 512
20
  chunk_size_limit = 600
21
  chunk_overlap = int(chunk_size_limit * 0.1)
22
 
23
- os.environ["OPENAI_API_KEY"] = openai_key
24
-
25
  llm = OpenAI(
26
  model="gpt-3.5-turbo",
27
  temperature=0.5,
 
7
  from llama_index.llms.openai import OpenAI
8
  import gradio as gr
9
  import os
 
10
 
11
  """
12
  Code adopted from Beebom article: "How to Train an AI Chatbot With Custom Knowledge Base Using ChatGPT API" by Arjun Sha
 
19
  chunk_size_limit = 600
20
  chunk_overlap = int(chunk_size_limit * 0.1)
21
 
 
 
22
  llm = OpenAI(
23
  model="gpt-3.5-turbo",
24
  temperature=0.5,