Ramesh-vani commited on
Commit
21c7247
·
verified ·
1 Parent(s): 1232fd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -688,12 +688,13 @@ def process_input(user_input, process):
688
 
689
  if process:
690
  try:
691
- print(user_input.encode('utf-8').split("&&")[1],2)
692
  if user_input == 'Ctrl+C':
693
  print('Stopping process')
694
  # Send SIGINT signal to terminate the process gracefully
695
  process.send_signal(signal.SIGINT)
696
  else:
 
697
  process.stdin.write(user_input.encode('utf-8') + b'\n')
698
  # process.stdin.flush()
699
  except Exception as e:
 
688
 
689
  if process:
690
  try:
691
+
692
  if user_input == 'Ctrl+C':
693
  print('Stopping process')
694
  # Send SIGINT signal to terminate the process gracefully
695
  process.send_signal(signal.SIGINT)
696
  else:
697
+ print(user_input)
698
  process.stdin.write(user_input.encode('utf-8') + b'\n')
699
  # process.stdin.flush()
700
  except Exception as e: