Update app.py
Browse files
app.py
CHANGED
@@ -186,7 +186,7 @@ def comment_generate(prompt, history,post_check,full_conv,persona2, agent_name=a
|
|
186 |
html_out=load_html(out_json)
|
187 |
|
188 |
#out_json = {'user':list_of_users[0],'datetime':current_time,'file_name':filename,'title':title,'blog':1,'comment':0,'reply':0,"prompt":prompt,"output":output,'comment_list':[]}
|
189 |
-
file_n = f'{post_check["
|
190 |
print(file_n)
|
191 |
'''
|
192 |
r = requests.get(f'{save_data}book1/{file_n}')
|
@@ -275,7 +275,7 @@ def reply_generate(prompt, history,post_check,full_conv,persona1, agent_name=age
|
|
275 |
html_out=load_html(out_json)
|
276 |
|
277 |
#out_json = {'user':list_of_users[0],'datetime':current_time,'file_name':filename,'title':title,'blog':1,'comment':0,'reply':0,"prompt":prompt,"output":output,'comment_list':[]}
|
278 |
-
file_n = f'{post_check["
|
279 |
print(file_n)
|
280 |
|
281 |
with open(f'{uid}.json', 'w') as f:
|
|
|
186 |
html_out=load_html(out_json)
|
187 |
|
188 |
#out_json = {'user':list_of_users[0],'datetime':current_time,'file_name':filename,'title':title,'blog':1,'comment':0,'reply':0,"prompt":prompt,"output":output,'comment_list':[]}
|
189 |
+
file_n = f'{post_check["file_name"]}.json'
|
190 |
print(file_n)
|
191 |
'''
|
192 |
r = requests.get(f'{save_data}book1/{file_n}')
|
|
|
275 |
html_out=load_html(out_json)
|
276 |
|
277 |
#out_json = {'user':list_of_users[0],'datetime':current_time,'file_name':filename,'title':title,'blog':1,'comment':0,'reply':0,"prompt":prompt,"output":output,'comment_list':[]}
|
278 |
+
file_n = f'{post_check["file_name"]}.json'
|
279 |
print(file_n)
|
280 |
|
281 |
with open(f'{uid}.json', 'w') as f:
|