raannakasturi commited on
Commit
20e13fa
·
1 Parent(s): ec6e10f

Remove subprocess calls for package updates and Sendmail installation from app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -1,6 +1,5 @@
1
  import gradio as gr
2
  from post_blog import main
3
- import subprocess
4
 
5
  def post_blog(title, category, summary, mindmap, citation, access_key):
6
  status = main(title, category, summary, mindmap, citation, access_key)
@@ -52,12 +51,4 @@ with gr.Blocks(theme=theme, title="ReXplore Blog Poster", fill_height=True) as a
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)
 
1
  import gradio as gr
2
  from post_blog import main
 
3
 
4
  def post_blog(title, category, summary, mindmap, citation, access_key):
5
  status = main(title, category, summary, mindmap, citation, access_key)
 
51
  )
52
  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)
53
 
 
 
 
 
 
 
 
 
54
  app.queue(default_concurrency_limit=25).launch(show_api=True)