Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -48,12 +48,12 @@ def get_tts_channel():
|
|
48 |
|
49 |
|
50 |
# User input
|
51 |
-
model_type = st.selectbox("Select Model", ["
|
52 |
raw_text = st.text_area("This news is real or fake?")
|
53 |
image_upload = st.file_uploader("Upload Image", type=["jpg", "jpeg", "png"])
|
54 |
|
55 |
# Button to generate result
|
56 |
-
if st.button("Generate Result"):
|
57 |
if model_type == "GPT-4 Vision":
|
58 |
# Set up gRPC channel for GPT-4 Vision
|
59 |
channel_gpt4 = ClarifaiChannel.get_grpc_channel()
|
|
|
48 |
|
49 |
|
50 |
# User input
|
51 |
+
model_type = st.selectbox("Select Model", ["Fake news detection model"])
|
52 |
raw_text = st.text_area("This news is real or fake?")
|
53 |
image_upload = st.file_uploader("Upload Image", type=["jpg", "jpeg", "png"])
|
54 |
|
55 |
# Button to generate result
|
56 |
+
if st.button("Generate News Result"):
|
57 |
if model_type == "GPT-4 Vision":
|
58 |
# Set up gRPC channel for GPT-4 Vision
|
59 |
channel_gpt4 = ClarifaiChannel.get_grpc_channel()
|