Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,19 +30,15 @@ st.set_page_config(
|
|
| 30 |
initial_sidebar_state="collapsed",
|
| 31 |
)
|
| 32 |
|
| 33 |
-
st.header("
|
| 34 |
user_text = st.text_input("Enter title for blog")
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
-
with col1:
|
| 38 |
-
number_of_words = st.text_input("Number of words in Blog")
|
| 39 |
|
| 40 |
-
#
|
| 41 |
-
# blog_audience = st.selectbox("Select target audience",
|
| 42 |
-
# ['Data Scientists', 'Researchers', 'Common People'],
|
| 43 |
-
# index=2)
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
if submit_btn:
|
| 48 |
-
llm_response(user_text, number_of_words) # function call for printing results
|
|
|
|
| 30 |
initial_sidebar_state="collapsed",
|
| 31 |
)
|
| 32 |
|
| 33 |
+
st.header("File Insights🧊")
|
| 34 |
user_text = st.text_input("Enter title for blog")
|
| 35 |
+
uploaded_file = st.file_uploader("Upload csv file")
|
| 36 |
+
if uploaded_file is not None:
|
| 37 |
+
df = pd.read_csv(uploaded_file)
|
| 38 |
+
print(df)
|
| 39 |
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
# submit_btn = st.button("Submit")
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
+
# if submit_btn:
|
| 44 |
+
# llm_response(user_text, number_of_words) # function call for printing results
|
|
|
|
|
|