saving files
Browse files
app.py
CHANGED
@@ -3,12 +3,6 @@
|
|
3 |
import os
|
4 |
import openai
|
5 |
import gradio as gr
|
6 |
-
from dotenv import load_dotenv, find_dotenv
|
7 |
-
_ = load_dotenv(find_dotenv()) # read local .env file
|
8 |
-
|
9 |
-
API_KEY = os.environ['OPENAI_API_KEY']
|
10 |
-
|
11 |
-
print (API_KEY)
|
12 |
|
13 |
## AI 建議
|
14 |
def get_advice(bmi,temp, API_KEY, model="gpt-3.5-turbo"):
|
|
|
3 |
import os
|
4 |
import openai
|
5 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
## AI 建議
|
8 |
def get_advice(bmi,temp, API_KEY, model="gpt-3.5-turbo"):
|