ZahirJS commited on
Commit
100c379
·
verified ·
1 Parent(s): 92e3c6f

Update sample_data.py

Browse files
Files changed (1) hide show
  1. sample_data.py +33 -39
sample_data.py CHANGED
@@ -308,71 +308,65 @@ RADIAL_DIAGRAM_JSON = """
308
 
309
  PROCESS_FLOW_JSON = """
310
  {
311
- "start_node": "Start Inference Request",
312
  "nodes": [
313
  {
314
- "id": "user_input",
315
- "label": "Receive User Input (Data)",
316
  "type": "io"
317
  },
318
  {
319
- "id": "preprocess_data",
320
- "label": "Preprocess Data",
321
- "type": "process"
322
  },
323
  {
324
- "id": "validate_data",
325
- "label": "Validate Data Format/Type",
326
- "type": "decision"
327
  },
328
  {
329
- "id": "data_valid_yes",
330
- "label": "Data Valid?",
331
  "type": "decision"
332
  },
333
  {
334
- "id": "load_model",
335
- "label": "Load AI Model (if not cached)",
336
- "type": "process"
337
- },
338
- {
339
- "id": "run_inference",
340
- "label": "Run AI Model Inference",
341
  "type": "process"
342
  },
343
  {
344
- "id": "postprocess_output",
345
- "label": "Postprocess Model Output",
346
- "type": "process"
347
  },
348
  {
349
- "id": "send_response",
350
- "label": "Send Response to User",
351
  "type": "io"
352
  },
353
  {
354
- "id": "log_error",
355
- "label": "Log Error & Notify User",
356
- "type": "process"
357
  },
358
  {
359
- "id": "end_inference_process",
360
- "label": "End Inference Process",
361
  "type": "end"
362
  }
363
  ],
364
  "connections": [
365
- {"from": "start_node", "to": "user_input", "label": "Request"},
366
- {"from": "user_input", "to": "preprocess_data", "label": "Data Received"},
367
- {"from": "preprocess_data", "to": "validate_data", "label": "Cleaned"},
368
- {"from": "validate_data", "to": "data_valid_yes", "label": "Check"},
369
- {"from": "data_valid_yes", "to": "load_model", "label": "Yes"},
370
- {"from": "data_valid_yes", "to": "log_error", "label": "No"},
371
- {"from": "load_model", "to": "run_inference", "label": "Model Ready"},
372
- {"from": "run_inference", "to": "postprocess_output", "label": "Output Generated"},
373
- {"from": "postprocess_output", "to": "send_response", "label": "Ready"},
374
- {"from": "send_response", "to": "end_inference_process", "label": "Response Sent"},
375
- {"from": "log_error", "to": "end_inference_process", "label": "Error Handled"}
376
  ]
377
  }
378
  """
 
308
 
309
  PROCESS_FLOW_JSON = """
310
  {
311
+ "start_node": "Start Email Send",
312
  "nodes": [
313
  {
314
+ "id": "enter_email_address",
315
+ "label": "Enter Email Address",
316
  "type": "io"
317
  },
318
  {
319
+ "id": "write_message",
320
+ "label": "Write Message",
321
+ "type": "io"
322
  },
323
  {
324
+ "id": "validate_email",
325
+ "label": "Check Email Format",
326
+ "type": "process"
327
  },
328
  {
329
+ "id": "email_valid",
330
+ "label": "Valid Email?",
331
  "type": "decision"
332
  },
333
  {
334
+ "id": "send_email",
335
+ "label": "Send Email",
 
 
 
 
 
336
  "type": "process"
337
  },
338
  {
339
+ "id": "save_to_sent",
340
+ "label": "Save to Sent Folder",
341
+ "type": "document"
342
  },
343
  {
344
+ "id": "show_success",
345
+ "label": "Show Success Message",
346
  "type": "io"
347
  },
348
  {
349
+ "id": "show_error",
350
+ "label": "Show Error Message",
351
+ "type": "io"
352
  },
353
  {
354
+ "id": "end_process",
355
+ "label": "End Process",
356
  "type": "end"
357
  }
358
  ],
359
  "connections": [
360
+ {"from": "Start Email Send", "to": "enter_email_address", "label": "Start"},
361
+ {"from": "enter_email_address", "to": "write_message", "label": "Email Entered"},
362
+ {"from": "write_message", "to": "validate_email", "label": "Message Written"},
363
+ {"from": "validate_email", "to": "email_valid", "label": "Validation Complete"},
364
+ {"from": "email_valid", "to": "send_email", "label": "Valid"},
365
+ {"from": "email_valid", "to": "show_error", "label": "Invalid"},
366
+ {"from": "send_email", "to": "save_to_sent", "label": "Email Sent"},
367
+ {"from": "save_to_sent", "to": "show_success", "label": "Saved"},
368
+ {"from": "show_success", "to": "end_process", "label": "Success"},
369
+ {"from": "show_error", "to": "end_process", "label": "Error"}
 
370
  ]
371
  }
372
  """