Spaces:
Sleeping
Sleeping
Commit ·
86a0a77
1
Parent(s): 440ad32
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import openai
|
|
|
|
| 3 |
|
| 4 |
-
openai.api_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
|