Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ if "analyze_video" not in st.session_state:
|
|
47 |
# Input Section
|
48 |
if option == "Text":
|
49 |
news_text = st.text_area("Enter the news content to check:", height=200)
|
50 |
-
analyze_text_clicked = st.button("Analyze News"
|
51 |
|
52 |
if analyze_text_clicked:
|
53 |
if not news_text.strip():
|
@@ -61,7 +61,7 @@ if option == "Text":
|
|
61 |
|
62 |
elif option == "Image":
|
63 |
uploaded_image = st.file_uploader("Upload a news image", type=["jpg", "png", "jpeg"])
|
64 |
-
analyze_image_clicked = st.button("Analyze Image"
|
65 |
|
66 |
if uploaded_image and analyze_image_clicked:
|
67 |
image = Image.open(uploaded_image)
|
@@ -70,7 +70,7 @@ elif option == "Image":
|
|
70 |
|
71 |
elif option == "Video Link":
|
72 |
video_url = st.text_input("Enter the video link:")
|
73 |
-
analyze_video_clicked = st.button("Analyze Video"
|
74 |
|
75 |
if analyze_video_clicked:
|
76 |
if not video_url.strip():
|
@@ -114,4 +114,4 @@ if st.session_state.get("analyze_image", False):
|
|
114 |
if st.session_state.get("analyze_video", False):
|
115 |
video_url = st.session_state.get("video_url", "")
|
116 |
st.video(video_url)
|
117 |
-
st.info("Video analysis feature coming soon!")
|
|
|
47 |
# Input Section
|
48 |
if option == "Text":
|
49 |
news_text = st.text_area("Enter the news content to check:", height=200)
|
50 |
+
analyze_text_clicked = st.button("Analyze News")
|
51 |
|
52 |
if analyze_text_clicked:
|
53 |
if not news_text.strip():
|
|
|
61 |
|
62 |
elif option == "Image":
|
63 |
uploaded_image = st.file_uploader("Upload a news image", type=["jpg", "png", "jpeg"])
|
64 |
+
analyze_image_clicked = st.button("Analyze Image")
|
65 |
|
66 |
if uploaded_image and analyze_image_clicked:
|
67 |
image = Image.open(uploaded_image)
|
|
|
70 |
|
71 |
elif option == "Video Link":
|
72 |
video_url = st.text_input("Enter the video link:")
|
73 |
+
analyze_video_clicked = st.button("Analyze Video")
|
74 |
|
75 |
if analyze_video_clicked:
|
76 |
if not video_url.strip():
|
|
|
114 |
if st.session_state.get("analyze_video", False):
|
115 |
video_url = st.session_state.get("video_url", "")
|
116 |
st.video(video_url)
|
117 |
+
st.info("Video analysis feature coming soon!")
|