Spaces:
Build error
Build error
Commit Β·
d42c48b
1
Parent(s): c43798f
chatbot scaffold ready env file updated
Browse files- utils/chatbot.py +2 -1
utils/chatbot.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
import openai
|
| 2 |
from openai import OpenAI
|
| 3 |
import gradio as gr
|
|
|
|
| 4 |
|
| 5 |
client = OpenAI(
|
| 6 |
-
api_key = "
|
| 7 |
)
|
| 8 |
class SpecializedDoctor:
|
| 9 |
def __init__(self, specialty):
|
|
|
|
| 1 |
import openai
|
| 2 |
from openai import OpenAI
|
| 3 |
import gradio as gr
|
| 4 |
+
import os
|
| 5 |
|
| 6 |
client = OpenAI(
|
| 7 |
+
api_key = os.environ["OPENAI_API_KEY"] # Set your API key securely
|
| 8 |
)
|
| 9 |
class SpecializedDoctor:
|
| 10 |
def __init__(self, specialty):
|