raannakasturi commited on
Commit
4a0b282
·
verified ·
1 Parent(s): 461cf2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -51,5 +51,13 @@ with gr.Blocks(theme=theme, title="ReXplore Blog Poster", fill_height=True) as a
51
  show_progress="full",
52
  )
53
  clear_btn.click(clear_everything, inputs=[category, title, summary, mindmap, citation, access_key, status], outputs=[category, title, summary, mindmap, citation, access_key, status], show_api=False)
54
- subprocess.run(['apt-get', 'update', '&&', 'apt-get', 'install', 'sendmail', '-y'], shell=True)
 
 
 
 
 
 
 
 
55
  app.queue(default_concurrency_limit=25).launch(show_api=True)
 
51
  show_progress="full",
52
  )
53
  clear_btn.click(clear_everything, inputs=[category, title, summary, mindmap, citation, access_key, status], outputs=[category, title, summary, mindmap, citation, access_key, status], show_api=False)
54
+
55
+ import subprocess
56
+
57
+ # Update package list
58
+ subprocess.run(['apt-get', 'update'], check=True)
59
+
60
+ # Install Sendmail
61
+ subprocess.run(['apt-get', 'install', 'sendmail', '-y'], check=True)
62
+
63
  app.queue(default_concurrency_limit=25).launch(show_api=True)