Spaces:
Runtime error
Runtime error
Update app.py
Browse files2 unmodified lines345678970 unmodified lines808182838485862 unmodified lines# Initialize the OpenAI client with your proxy APIclient = openai.OpenAI(api_key= openai_api_key,base_url="https://aigptx.top/")70 unmodified linesgr.HTML(title)with gr.Column(elem_id="col_container"):openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here")system_prompt = gr.Textbox(placeholder="Enter system prompt (optional)", label="System Prompt", lines=2)chatbot = gr.Chatbot(elem_id='chatbot')inputs = gr.Textbox(placeholder="Type your message here!", label="Input", lines=1)2 unmodified lines345678970 unmodified lines8081828384852 unmodified lines# Initialize the OpenAI client with your proxy APIclient = openai.OpenAI(api_key= "sk-hm35RR1E0dfB26C8873BT3BlBKFJE681B3d87a6c4B3e8C44",base_url="https://aigptx.top/")70 unmodified linesgr.HTML(title)with gr.Column(elem_id="col_container"):system_prompt = gr.Textbox(placeholder="Enter system prompt (optional)", label="System Prompt", lines=2)chatbot = gr.Chatbot(elem_id='chatbot')inputs = gr.Textbox(placeholder="Type your message here!", label="Input", lines=1)
app.py+1-2