nakamura196 commited on
Commit
17b121a
Β·
1 Parent(s): 3a798e9

chore: minor update

Browse files
Files changed (1) hide show
  1. app.py +0 -10
app.py CHANGED
@@ -100,7 +100,6 @@ def get_chatbot_response(client, thread_id, assistant_id, message):
100
  return "Unable to retrieve a response." # Fallback response
101
 
102
  def chatbot_response(history, message):
103
-
104
  """Wrapper function to generate chatbot response."""
105
  global thread
106
  # Get response from the API
@@ -115,20 +114,11 @@ def chatbot_response(history, message):
115
 
116
  # Load environment variables
117
  load_environment()
118
-
119
- # Initialize OpenAI client
120
  client = initialize_openai_client()
121
-
122
- # Define vector store ID
123
  vector_store_id = os.getenv("AZURE_OPENAI_VECTOR_STORE_ID")
124
-
125
- # Create assistant and thread
126
  assistant = create_assistant(client, vector_store_id)
127
 
128
  def respond(message, chat_history, state):
129
-
130
-
131
-
132
  """γƒγƒ£γƒƒγƒˆε±₯ζ­΄γ¨ηŠΆζ…‹γ‚’ζ›΄ζ–°γ™γ‚‹γ€‚"""
133
  thread_id = state["thread_id"]
134
 
 
100
  return "Unable to retrieve a response." # Fallback response
101
 
102
  def chatbot_response(history, message):
 
103
  """Wrapper function to generate chatbot response."""
104
  global thread
105
  # Get response from the API
 
114
 
115
  # Load environment variables
116
  load_environment()
 
 
117
  client = initialize_openai_client()
 
 
118
  vector_store_id = os.getenv("AZURE_OPENAI_VECTOR_STORE_ID")
 
 
119
  assistant = create_assistant(client, vector_store_id)
120
 
121
  def respond(message, chat_history, state):
 
 
 
122
  """γƒγƒ£γƒƒγƒˆε±₯ζ­΄γ¨ηŠΆζ…‹γ‚’ζ›΄ζ–°γ™γ‚‹γ€‚"""
123
  thread_id = state["thread_id"]
124