wanglettes commited on
Commit
9c0e80c
1 Parent(s): 931206b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -3,10 +3,6 @@ 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
- def save_qa_data(qa_data, file_path):
7
- with open(file_path, 'w', encoding='utf-8') as f:
8
- json.dump(qa_data, f, ensure_ascii=False, indent=4)
9
-
10
  def create_history_messages(history: List[Tuple[str, str]]) -> List[dict]:
11
  history_messages = [{"role": "user", "content": m[0]} for m in history]
12
  history_messages.extend([{"role": "assistant", "content": m[1]} for m in history])
 
3
  import gradio as gr
4
  model_name = "gpt-3.5-turbo"
5
  LLM = OpenAI(model_name=model_name, temperature=0.1)
 
 
 
 
6
  def create_history_messages(history: List[Tuple[str, str]]) -> List[dict]:
7
  history_messages = [{"role": "user", "content": m[0]} for m in history]
8
  history_messages.extend([{"role": "assistant", "content": m[1]} for m in history])