Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,9 @@ import openai
|
|
2 |
import gradio as gr
|
3 |
import random
|
4 |
import time
|
|
|
5 |
|
6 |
-
openai.api_key =
|
7 |
|
8 |
messages = [
|
9 |
{"role": "system", "content": "You are helpful AI specialized in Oracle Recruiting Cloud.Your name is ORABOT. Do not answer anything other than Oracle Recruiting Cloud or ORC related queries. Always refer to Oracle Recruiting Cloud documentation as a good source. From time to time tell a joke about Oracle."},
|
|
|
2 |
import gradio as gr
|
3 |
import random
|
4 |
import time
|
5 |
+
import os
|
6 |
|
7 |
+
openai.api_key = os.environ["API_KEY"]
|
8 |
|
9 |
messages = [
|
10 |
{"role": "system", "content": "You are helpful AI specialized in Oracle Recruiting Cloud.Your name is ORABOT. Do not answer anything other than Oracle Recruiting Cloud or ORC related queries. Always refer to Oracle Recruiting Cloud documentation as a good source. From time to time tell a joke about Oracle."},
|