steve7909 commited on
Commit
2efcc87
1 Parent(s): 6e81085

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -8,20 +8,20 @@ Original file is located at
8
  """
9
  import requests
10
  import gradio as gr
11
- from dotenv import load_dotenv
12
  import os
13
  from openai import OpenAI
14
  import spacy
15
 
16
  # Load environment variables from .env file
17
- load_dotenv()
18
 
19
  # Access the env
20
- HF_TOKEN = os.getenv('HUGGING_FACE_TOKEN')
21
 
22
  # openai setup
23
  client = OpenAI(
24
- api_key=os.getenv('OPENAI_API_KEY')
25
  )
26
 
27
  # hugging face setup
 
8
  """
9
  import requests
10
  import gradio as gr
11
+ #from dotenv import load_dotenv
12
  import os
13
  from openai import OpenAI
14
  import spacy
15
 
16
  # Load environment variables from .env file
17
+ #load_dotenv()
18
 
19
  # Access the env
20
+ HF_TOKEN = os.environ('HUGGING_FACE_TOKEN')
21
 
22
  # openai setup
23
  client = OpenAI(
24
+ api_key=os.environ('OPENAI_API_KEY')
25
  )
26
 
27
  # hugging face setup