-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
29 lines (20 loc) · 763 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import streamlit as st
from crew.main import write_post
from manage_files import display_file_with_url
import pandas as pd
import os
# suffix = ['*_websearch.csv', '*_titles.csv', '*_english.md', '*_spanish.md']
csv_files = ['*_titles.csv', '*_websearch.csv']
md_files = ['*_english.md', '*_spanish.md']
folder_path = './outputs'
st.set_page_config("Blog Post Automation")
st.title("Blog Post Automation")
topic = st.chat_input("My topic")
st.info("Write the topic and hit run.")
if topic is not None:
with st.spinner("Processing..."):
# write_post(topic)
with st.chat_message("user"):
st.write(topic)
display_file_with_url(folder_path, csv_files, 'csv')
display_file_with_url(folder_path, md_files, 'md')