Hussnainkha commited on
Commit
15de92c
·
verified ·
1 Parent(s): c9f69da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,10 +1,9 @@
1
  import os
2
  import streamlit as st
3
- from openai import OpenAI
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):