Eric Michael Martinez commited on
Commit
9db5fcb
·
1 Parent(s): 2a7a736
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,6 +1,9 @@
1
  import gradio as gr
2
  import openai
3
  import examples as chatbot_examples
 
 
 
4
 
5
  # Define a function to get the AI's reply using the OpenAI API
6
  def get_ai_reply(model, system_message, message, history_state):
@@ -96,4 +99,4 @@ def launch_chatbot(additional_examples=[], share=False):
96
 
97
  # Call the launch_chatbot function to start the chatbot interface using Gradio
98
  # Set the share parameter to False, meaning the interface will not be publicly accessible
99
- launch_chatbot(share=False)
 
1
  import gradio as gr
2
  import openai
3
  import examples as chatbot_examples
4
+ from dotenv import load_dotenv
5
+
6
+ load_dotenv()
7
 
8
  # Define a function to get the AI's reply using the OpenAI API
9
  def get_ai_reply(model, system_message, message, history_state):
 
99
 
100
  # Call the launch_chatbot function to start the chatbot interface using Gradio
101
  # Set the share parameter to False, meaning the interface will not be publicly accessible
102
+ launch_chatbot(share=True)