Update app.py
Browse files
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 = '/
|
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 |
-
|
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
|