Omnibus commited on
Commit
a8e5a5c
·
verified ·
1 Parent(s): 6c79277

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -197,19 +197,19 @@ def comment_generate(prompt, history,post_check,full_conv,persona2, agent_name=a
197
  # for ea in
198
  '''
199
 
200
- with open(f'{uid}.json', 'w') as f:
201
- json_hist=json.dumps(out_json, indent=4)
202
- f.write(json_hist)
203
- f.close()
204
-
205
- upload_file(
206
- path_or_fileobj =f"{uid}.json",
207
- path_in_repo = f"book1/{file_n}",
208
- repo_id =f"{username}/{dataset_name}",
209
- repo_type = "dataset",
210
- token=token,
211
- )
212
- #except Exception as e:
213
  # print(e)
214
  return "",history,out_json,out_json,out_json,html_out
215
 
 
197
  # for ea in
198
  '''
199
 
200
+ with open(f'{uid}.json', 'w') as f:
201
+ json_hist=json.dumps(out_json, indent=4)
202
+ f.write(json_hist)
203
+ f.close()
204
+
205
+ upload_file(
206
+ path_or_fileobj =f"{uid}.json",
207
+ path_in_repo = f"book1/{file_n}",
208
+ repo_id =f"{username}/{dataset_name}",
209
+ repo_type = "dataset",
210
+ token=token,
211
+ )
212
+ #except Exception as e:
213
  # print(e)
214
  return "",history,out_json,out_json,out_json,html_out
215