joeli88 commited on
Commit
3f3cde7
1 Parent(s): 08dde72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -2,10 +2,9 @@ import openai
2
  import gradio as gr
3
  import os
4
 
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"},
 
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"},