Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|