wanglettes commited on
Commit
978c336
·
1 Parent(s): 859d827

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -1,10 +1,7 @@
1
  from typing import List, Tuple, Dict, Generator
2
  from langchain.llms import OpenAI
3
  import gradio as gr
4
- import os
5
- os.environ["OPENAI_API_KEY"] = "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"
6
  model_name = "gpt-3.5-turbo"
7
- #OpenAI.api_key = "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"
8
  LLM = OpenAI(model_name=model_name, temperature=0.1)
9
 
10
  def create_history_messages(history: List[Tuple[str, str]]) -> List[dict]:
 
1
  from typing import List, Tuple, Dict, Generator
2
  from langchain.llms import OpenAI
3
  import gradio as gr
 
 
4
  model_name = "gpt-3.5-turbo"
 
5
  LLM = OpenAI(model_name=model_name, temperature=0.1)
6
 
7
  def create_history_messages(history: List[Tuple[str, str]]) -> List[dict]: