akhilhsingh commited on
Commit
3f3ca2e
1 Parent(s): 69178e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,8 +1,9 @@
1
  import gradio as gr
2
  import openai
 
3
 
4
  # Replace the placeholder text with your actual OpenAI API key
5
- openai.api_key = os.environ['OPENAPI_KEY']
6
 
7
  def chat_with_gpt3(prompt):
8
  response = openai.ChatCompletion.create(
 
1
  import gradio as gr
2
  import openai
3
+ import os
4
 
5
  # Replace the placeholder text with your actual OpenAI API key
6
+ openai.api_key = os.getenv['OPENAPI_KEY']
7
 
8
  def chat_with_gpt3(prompt):
9
  response = openai.ChatCompletion.create(