Yusufibin commited on
Commit
d9dc495
·
1 Parent(s): f28299f
Files changed (2) hide show
  1. .env +1 -0
  2. app.py +3 -1
.env ADDED
@@ -0,0 +1 @@
 
 
1
+ OPENAI_API_KEY = "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"
app.py CHANGED
@@ -1,5 +1,7 @@
1
  import gradio as gr
2
  import openai
 
 
3
  title = "Mariam 💎"
4
  description = """" Banana Banana ? 👀 bon ok ok. Bref comme vous le voyez c'est simple ! Pas besoin d'explication. C'est un script simple, c'est basé sur néoX, python, et gradio.
5
 
@@ -42,7 +44,7 @@ def infer(im):
42
 
43
  #app 2
44
 
45
- openai.api_key = "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"
46
 
47
  def gpt(prompt):
48
  if not prompt:
 
1
  import gradio as gr
2
  import openai
3
+ import os
4
+
5
  title = "Mariam 💎"
6
  description = """" Banana Banana ? 👀 bon ok ok. Bref comme vous le voyez c'est simple ! Pas besoin d'explication. C'est un script simple, c'est basé sur néoX, python, et gradio.
7
 
 
44
 
45
  #app 2
46
 
47
+ openai.api_key = os.environ.get("OPENAI_API_KEY")
48
 
49
  def gpt(prompt):
50
  if not prompt: