Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,10 +2,9 @@ import openai
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
|
5 |
-
#
|
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"},
|
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
|
5 |
+
#openai_api_key = os.getenv('API_KEY')
|
|
|
6 |
|
7 |
+
openai.api_key = "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"
|
8 |
|
9 |
messages = [
|
10 |
{"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"},
|