raannakasturi commited on
Commit
ec6e10f
·
2 Parent(s): 46f4775 4a0b282

Merge branch 'main' of https://huggingface.co/spaces/raannakasturi/ReXploreBlogPoster

Browse files
Files changed (2) hide show
  1. app.py +9 -0
  2. requirements.txt +7 -1
app.py CHANGED
@@ -1,5 +1,6 @@
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,4 +52,12 @@ with gr.Blocks(theme=theme, title="ReXplore Blog Poster", fill_height=True) as a
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)
 
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
  )
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)
requirements.txt CHANGED
@@ -1,5 +1,11 @@
1
  gradio==5.9.1
 
 
2
  nbconvert==7.16.4
3
  mistune==3.0.2
 
4
  python-dotenv==1.0.1
5
- requests==2.26.0
 
 
 
 
1
  gradio==5.9.1
2
+ setuptools==75.6.0
3
+ wheel==0.45.1
4
  nbconvert==7.16.4
5
  mistune==3.0.2
6
+ <<<<<<< HEAD
7
  python-dotenv==1.0.1
8
+ requests==2.26.0
9
+ =======
10
+ python-dotenv==1.0.1
11
+ >>>>>>> 4a0b2820756badfd742366b11fef27d086e5d337