Spaces:
Runtime error
Runtime error
Commit
·
fc21a71
1
Parent(s):
0494603
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
import json
|
5 |
model_name = "gpt-3.5-turbo"
|
6 |
LLM = OpenAI(model_name=model_name, temperature=0.1)
|
7 |
-
|
8 |
def save_qa_data(qa_data, file_path):
|
9 |
with open(file_path, 'w', encoding='utf-8') as f:
|
10 |
json.dump(qa_data, f, ensure_ascii=False, indent=4)
|
|
|
4 |
import json
|
5 |
model_name = "gpt-3.5-turbo"
|
6 |
LLM = OpenAI(model_name=model_name, temperature=0.1)
|
7 |
+
qa_data_file_path='qa.txt'
|
8 |
def save_qa_data(qa_data, file_path):
|
9 |
with open(file_path, 'w', encoding='utf-8') as f:
|
10 |
json.dump(qa_data, f, ensure_ascii=False, indent=4)
|