Update app.py
Browse files
app.py
CHANGED
@@ -154,8 +154,8 @@ def comment_generate(prompt, history,post_check,full_conv, agent_name=agents[0],
|
|
154 |
|
155 |
#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':[]}
|
156 |
file_n = f'{post_check["filename"]}.json'
|
157 |
-
|
158 |
-
r = requests.get(f'{save_data}{file_n}')
|
159 |
print(f'status code main:: {r.status_code}')
|
160 |
if r.status_code==200:
|
161 |
try:
|
|
|
154 |
|
155 |
#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':[]}
|
156 |
file_n = f'{post_check["filename"]}.json'
|
157 |
+
print(file_n)
|
158 |
+
r = requests.get(f'{save_data}/book1/{file_n}')
|
159 |
print(f'status code main:: {r.status_code}')
|
160 |
if r.status_code==200:
|
161 |
try:
|