anithai commited on
Commit
49866b9
·
verified ·
1 Parent(s): e3a4d9e
Files changed (1) hide show
  1. app.py +1 -3
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
- if __name__ == "__main__":
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)