Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
-
import openai
|
3 |
-
|
4 |
-
|
|
|
|
|
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 |
|