Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,11 +44,11 @@ def chat(question):
|
|
44 |
]
|
45 |
|
46 |
# Run the command
|
47 |
-
|
48 |
-
if output.returncode == 0:
|
49 |
-
|
50 |
-
else:
|
51 |
-
|
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,
|