Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
import os
|
2 |
import streamlit as st
|
3 |
-
|
4 |
|
5 |
# Initialize OpenAI
|
6 |
openai.api_key = os.environ['OPENAI_API_KEY']
|
7 |
-
client = OpenAI(api_key=os.environ['OPENAI_API_KEY'])
|
8 |
|
9 |
# Function to generate the recipe and detailed instructions
|
10 |
def create_dish_prompt(ingredients, category):
|
|
|
1 |
import os
|
2 |
import streamlit as st
|
3 |
+
import openai # Corrected import statement
|
4 |
|
5 |
# Initialize OpenAI
|
6 |
openai.api_key = os.environ['OPENAI_API_KEY']
|
|
|
7 |
|
8 |
# Function to generate the recipe and detailed instructions
|
9 |
def create_dish_prompt(ingredients, category):
|