arslan-ahmed commited on
Commit
16e4fc4
1 Parent(s): 6e4113b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -103,7 +103,6 @@ def uiData_vecStore(userFiles, userUrls, api_key_st, vsDict_st={}, progress=gr.P
103
  docs = split_docs(documents)
104
  # Embeddings
105
  try:
106
- api_key_st='Null' if api_key_st is None or api_key_st=='' else api_key_st
107
  openai.Model.list(api_key=api_key_st) # test the API key
108
  embeddings = OpenAIEmbeddings(openai_api_key=api_key_st)
109
  except Exception as e:
 
103
  docs = split_docs(documents)
104
  # Embeddings
105
  try:
 
106
  openai.Model.list(api_key=api_key_st) # test the API key
107
  embeddings = OpenAIEmbeddings(openai_api_key=api_key_st)
108
  except Exception as e: