Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import openai
|
|
|
2 |
import gradio as gr
|
3 |
from gradio.themes.utils import colors, fonts, sizes
|
4 |
|
5 |
-
openai.api_key =
|
6 |
|
7 |
messages = [
|
8 |
{"role": "system", "content": "You are an AI specialized in Residential Real Estate market. Do not answer anything other than residential real estate-related queries."},
|
|
|
1 |
import openai
|
2 |
+
import os
|
3 |
import gradio as gr
|
4 |
from gradio.themes.utils import colors, fonts, sizes
|
5 |
|
6 |
+
openai.api_key = os.environ.get('openai_key')
|
7 |
|
8 |
messages = [
|
9 |
{"role": "system", "content": "You are an AI specialized in Residential Real Estate market. Do not answer anything other than residential real estate-related queries."},
|