yrobel-lima commited on
Commit
4401ddc
1 Parent(s): 3b5c559

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -11,8 +11,6 @@ from utils.error_message_template import ERROR_MESSAGE
11
 
12
  logging.basicConfig(level=logging.ERROR)
13
 
14
- openai_client = OpenAI()
15
-
16
  # Streamlit page configuration
17
  st.set_page_config(
18
  page_title="ELLA AI Assistant",
@@ -116,6 +114,7 @@ if __name__ == "__main__":
116
  # Chat interface
117
  if user_input and user_input.strip():
118
  # OPENAI moderator api
 
119
  moderator = openai_client.moderations.create(
120
  model="omni-moderation-latest",
121
  input=user_input,
 
11
 
12
  logging.basicConfig(level=logging.ERROR)
13
 
 
 
14
  # Streamlit page configuration
15
  st.set_page_config(
16
  page_title="ELLA AI Assistant",
 
114
  # Chat interface
115
  if user_input and user_input.strip():
116
  # OPENAI moderator api
117
+ openai_client = OpenAI()
118
  moderator = openai_client.moderations.create(
119
  model="omni-moderation-latest",
120
  input=user_input,