paralym commited on
Commit
f6a7b09
·
verified ·
1 Parent(s): bd87036

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -86,6 +86,8 @@ print(f"Gradio-client version: {gradio_client.__version__}")
86
  def get_conv_log_filename():
87
  t = datetime.datetime.now()
88
  name = os.path.join(LOGDIR, f"{t.year}-{t.month:02d}-{t.day:02d}-user_conv.json")
 
 
89
  return name
90
 
91
  def get_conv_vote_filename():
 
86
  def get_conv_log_filename():
87
  t = datetime.datetime.now()
88
  name = os.path.join(LOGDIR, f"{t.year}-{t.month:02d}-{t.day:02d}-user_conv.json")
89
+ if not os.path.isfile(name):
90
+ os.makedirs(os.path.dirname(name), exist_ok=True)
91
  return name
92
 
93
  def get_conv_vote_filename():