Ramesh-vani commited on
Commit
88624a4
·
verified ·
1 Parent(s): c036ce6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -694,9 +694,9 @@ async def process_input(user_input, process):
694
  # Send Ctrl+C signal to the subprocess
695
  process.send_signal(signal.SIGINT)
696
  # Read output and error asynchronously
697
- out, err = await process.communicate()
698
- print("Subprocess output:", out)
699
- print("Subprocess error:", err)
700
  else:
701
  print(user_input)
702
  process.stdin.write(user_input.encode('utf-8') + b'\n')
 
694
  # Send Ctrl+C signal to the subprocess
695
  process.send_signal(signal.SIGINT)
696
  # Read output and error asynchronously
697
+ # await process.communicate()
698
+ print('stoping signal sent')
699
+
700
  else:
701
  print(user_input)
702
  process.stdin.write(user_input.encode('utf-8') + b'\n')