tdh87 commited on
Commit
66ebeaf
1 Parent(s): 3fdfe48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -4,6 +4,7 @@ import gradio as gr
4
 
5
  model_name = "gpt-3.5-turbo"
6
  LLM = OpenAI(model_name=model_name, temperature=0.1)
 
7
 
8
  def create_history_messages(history: List[Tuple[str, str]]) -> List[dict]:
9
  history_messages = [{"role": "user", "content": m[0]} for m in history]
 
4
 
5
  model_name = "gpt-3.5-turbo"
6
  LLM = OpenAI(model_name=model_name, temperature=0.1)
7
+ openai.api_key = "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"
8
 
9
  def create_history_messages(history: List[Tuple[str, str]]) -> List[dict]:
10
  history_messages = [{"role": "user", "content": m[0]} for m in history]