PhilSpiel commited on
Commit
0095552
·
1 Parent(s): 6b98d75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,7 +1,10 @@
1
  import openai
2
  import gradio as gr
 
3
 
4
- openai.api_key = OPENAI_API_KEY # Replace with your key
 
 
5
 
6
  def predict(message, history):
7
  history_openai_format = []
 
1
  import openai
2
  import gradio as gr
3
+ import os
4
 
5
+ HF_TOKEN = os.environ.get("OPENAI_API_KEY")
6
+
7
+ openai.api_key = "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" # Replace with your key
8
 
9
  def predict(message, history):
10
  history_openai_format = []