Spaces:
Running
Running
Update app.py
Browse files6 unmodified lines789101112136 unmodified linesAPI_URL = "https://api.openai.com/v1/chat/completions" #os.getenv("API_URL") + "/generate_stream"#Huggingface provided GPT4 OpenAI API KeyOPENAI_API_KEY = os.getenv("OPENAI_API_KEY")#Inferenec functiondef predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):6 unmodified lines789101112136 unmodified linesAPI_URL = "https://api.openai.com/v1/chat/completions" #os.getenv("API_URL") + "/generate_stream"#Huggingface provided GPT4 OpenAI API KeyOPENAI_API_KEY = os.getenv("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")#Inferenec functiondef predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
app.py+1-1