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