AI-Edify commited on
Commit
f16d06f
·
1 Parent(s): 176618d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1,8 +1,11 @@
1
  import gradio as gr
2
- import openai
3
- from huggingface_hub import hf_hub_authenticate
4
- api_key = hf_hub_authenticate("api_key")
 
 
5
 
 
6
 
7
  openai.api_key = api_key
8
 
 
1
  import gradio as gr
2
+ import openai, config, subprocess
3
+ import json
4
+ import os
5
+ import huggingface_hub
6
+ from huggingface_hub import secrets
7
 
8
+ api_key = secrets.get("my-api-key")
9
 
10
  openai.api_key = api_key
11