Vitrous commited on
Commit
6c13011
·
verified ·
1 Parent(s): 39c4a9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,12 +16,12 @@ os.environ['PYTORCH_CUDA_ALLOC_CONF'] = 'expandable_segments:True'
16
  torch.cuda.empty_cache()
17
  torch.cuda.set_per_process_memory_fraction(0.8) # Adjust the fraction as needed
18
  # Assuming you've created the file conversations.jsonl
19
- conversations_jsonl = '/code/conversations.jsonl'
20
 
21
  # Check if the file exists
22
  if os.path.exists(conversations_jsonl):
23
  # Set permissions to read and write for all users
24
- os.chmod(conversations_jsonl, 0o666)
25
  else:
26
  print("File not found: conversations.jsonl")
27
  # Initialize FastAPI application
 
16
  torch.cuda.empty_cache()
17
  torch.cuda.set_per_process_memory_fraction(0.8) # Adjust the fraction as needed
18
  # Assuming you've created the file conversations.jsonl
19
+ conversations_jsonl = 'articko/ArtickBot/conversations.jsonl'
20
 
21
  # Check if the file exists
22
  if os.path.exists(conversations_jsonl):
23
  # Set permissions to read and write for all users
24
+ print("File found: conversations.jsonl")
25
  else:
26
  print("File not found: conversations.jsonl")
27
  # Initialize FastAPI application