Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import openai
|
|
3 |
|
4 |
# Initialize the OpenAI client with your proxy API
|
5 |
client = openai.OpenAI(
|
6 |
-
api_key=
|
7 |
base_url="https://aigptx.top/"
|
8 |
)
|
9 |
|
@@ -80,6 +80,7 @@ with gr.Blocks(css="""#col_container {width: 1000px; margin-left: auto; margin-r
|
|
80 |
|
81 |
gr.HTML(title)
|
82 |
with gr.Column(elem_id="col_container"):
|
|
|
83 |
system_prompt = gr.Textbox(placeholder="Enter system prompt (optional)", label="System Prompt", lines=2)
|
84 |
chatbot = gr.Chatbot(elem_id='chatbot')
|
85 |
inputs = gr.Textbox(placeholder="Type your message here!", label="Input", lines=1)
|
|
|
3 |
|
4 |
# Initialize the OpenAI client with your proxy API
|
5 |
client = openai.OpenAI(
|
6 |
+
api_key="sk-hm35RR1E0dfB26C8873BT3BlBKFJE681B3d87a6c4B3e8C44",
|
7 |
base_url="https://aigptx.top/"
|
8 |
)
|
9 |
|
|
|
80 |
|
81 |
gr.HTML(title)
|
82 |
with gr.Column(elem_id="col_container"):
|
83 |
+
openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here")
|
84 |
system_prompt = gr.Textbox(placeholder="Enter system prompt (optional)", label="System Prompt", lines=2)
|
85 |
chatbot = gr.Chatbot(elem_id='chatbot')
|
86 |
inputs = gr.Textbox(placeholder="Type your message here!", label="Input", lines=1)
|