rahul7star commited on
Commit
14bfe67
·
verified ·
1 Parent(s): 00fd569

Update simple_app.py

Browse files
Files changed (1) hide show
  1. simple_app.py +6 -0
simple_app.py CHANGED
@@ -58,7 +58,13 @@ def infer(prompt, progress=gr.Progress(track_tqdm=True)):
58
  stderr=subprocess.STDOUT,
59
  text=True,
60
  bufsize=1)
 
 
61
 
 
 
 
 
62
  print("Process started successfully.")
63
 
64
 
 
58
  stderr=subprocess.STDOUT,
59
  text=True,
60
  bufsize=1)
61
+
62
+ stdout, stderr = process.communicate()
63
 
64
+ # Print logs
65
+ print("🔹 Output Logs:\n", stdout)
66
+ if stderr:
67
+ print("🔺 Error Logs:\n", stderr)
68
  print("Process started successfully.")
69
 
70