herMaster commited on
Commit
41448ea
·
1 Parent(s): a0deb8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -44,11 +44,11 @@ def chat(question):
44
  ]
45
 
46
  # Run the command
47
- output = subprocess.run(command, capture_output=True, text=True)
48
- if output.returncode == 0:
49
- return output.stdout
50
- else:
51
- return "Error" + output.stderrt
52
 
53
  screen = gr.Interface(
54
  fn = chat,
 
44
  ]
45
 
46
  # Run the command
47
+ return subprocess.run(command, capture_output=True, text=True)
48
+ # if output.returncode == 0:
49
+ # return output.stdout
50
+ # else:
51
+ # return "Error" + output.stderrt
52
 
53
  screen = gr.Interface(
54
  fn = chat,