naughtondale commited on
Commit
86a0a77
·
1 Parent(s): 440ad32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
  import openai
 
3
 
4
- openai.api_key = "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" # insert your own OpenAI key
5
-
6
  def chatbot(input):
7
 
8
  prompt = """You only answer questions about Chronic Kidney Disease (CKD). If the question is not about CKD, you politely respond that you are not designed to answer that kind of question.\n\n""" + input
 
1
  import gradio as gr
2
  import openai
3
+ import os
4
 
5
+ openai.api_key = os.environ.get('openai_api_key')
 
6
  def chatbot(input):
7
 
8
  prompt = """You only answer questions about Chronic Kidney Disease (CKD). If the question is not about CKD, you politely respond that you are not designed to answer that kind of question.\n\n""" + input