Spaces:
Runtime error
Runtime error
Eric Michael Martinez
commited on
Commit
·
3c41053
1
Parent(s):
9db5fcb
update
Browse files
app.py
CHANGED
@@ -1,9 +1,6 @@
|
|
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,4 +96,4 @@ def launch_chatbot(additional_examples=[], share=False):
|
|
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=
|
|
|
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 |
|
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)
|