app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,6 @@ import subprocess
|
|
| 3 |
|
| 4 |
def chatbot_interface(question):
|
| 5 |
try:
|
| 6 |
-
# Correct Java path for Hugging Face deployment
|
| 7 |
result = subprocess.run(
|
| 8 |
['java', '-cp', '/app:/app/lib/json-20210307.jar', 'Main', question],
|
| 9 |
capture_output=True,
|
|
@@ -30,5 +29,4 @@ iface = gr.Interface(
|
|
| 30 |
description="Ask syllabus-related questions and get accurate responses."
|
| 31 |
)
|
| 32 |
|
| 33 |
-
|
| 34 |
-
iface.launch()
|
|
|
|
| 3 |
|
| 4 |
def chatbot_interface(question):
|
| 5 |
try:
|
|
|
|
| 6 |
result = subprocess.run(
|
| 7 |
['java', '-cp', '/app:/app/lib/json-20210307.jar', 'Main', question],
|
| 8 |
capture_output=True,
|
|
|
|
| 29 |
description="Ask syllabus-related questions and get accurate responses."
|
| 30 |
)
|
| 31 |
|
| 32 |
+
iface.launch(share=True)
|
|
|