Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import os
|
|
5 |
#Streaming endpoint
|
6 |
API_URL = "https://api.openai.com/v1/chat/completions" #os.getenv("API_URL") + "/generate_stream"
|
7 |
|
8 |
-
|
9 |
|
10 |
messages = [
|
11 |
{"role": "system", "content": "You are an astrologer. And you are from Kit Astrology. Use an astrologer tone to answer question and friendly remind them to consult Kit if have any query"},
|
|
|
5 |
#Streaming endpoint
|
6 |
API_URL = "https://api.openai.com/v1/chat/completions" #os.getenv("API_URL") + "/generate_stream"
|
7 |
|
8 |
+
openai_api_key = os.getenv('API_KEY')
|
9 |
|
10 |
messages = [
|
11 |
{"role": "system", "content": "You are an astrologer. And you are from Kit Astrology. Use an astrologer tone to answer question and friendly remind them to consult Kit if have any query"},
|