Spaces:
Build error
Build error
app.py
Browse files
app.py
CHANGED
|
@@ -4,10 +4,11 @@ import subprocess
|
|
| 4 |
def chatbot_interface(question):
|
| 5 |
try:
|
| 6 |
result = subprocess.run(
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
| 11 |
|
| 12 |
response = result.stdout.strip()
|
| 13 |
error_output = result.stderr.strip()
|
|
|
|
| 4 |
def chatbot_interface(question):
|
| 5 |
try:
|
| 6 |
result = subprocess.run(
|
| 7 |
+
['java', '-cp', '.', 'Main', question],
|
| 8 |
+
capture_output=True,
|
| 9 |
+
text=True
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
|
| 13 |
response = result.stdout.strip()
|
| 14 |
error_output = result.stderr.strip()
|