Spaces:
Runtime error
Runtime error
Update chat.py
Browse files
chat.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
from openai import OpenAI
|
2 |
import gradio as gr
|
3 |
|
4 |
-
|
5 |
-
client = OpenAI(api_key=api_key)
|
6 |
OpenAI.api_key = os.getenv("OPENAI_API_KEY")
|
|
|
|
|
7 |
|
8 |
|
9 |
def predict(message, history):
|
|
|
1 |
from openai import OpenAI
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
4 |
OpenAI.api_key = os.getenv("OPENAI_API_KEY")
|
5 |
+
client = OpenAI(api_key=api_key)
|
6 |
+
|
7 |
|
8 |
|
9 |
def predict(message, history):
|