jcmachicao commited on
Commit
d31531c
verified
1 Parent(s): 13b8afd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import gradio as gr
2
  import openai
3
  import os
4
-
5
- # Set the OpenAI API key
6
- openai.api_key = os.getenv("OPENAI_KEY") # Ensure this is set in the environment
7
 
8
  # Define the LLM function
9
  def generacion_llm(texto_input):
 
1
  import gradio as gr
2
  import openai
3
  import os
4
+ import openai
5
+ from openai import OpenAI
6
+ client = OpenAI(api_key=api_key)
7
 
8
  # Define the LLM function
9
  def generacion_llm(texto_input):