pyresearch commited on
Commit
8638438
·
verified ·
1 Parent(s): aa70e5c

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -35,7 +35,7 @@ metadata_tts = (('authorization', 'Key ' + PAT_TTS),)
35
  userDataObject_tts = resources_pb2.UserAppIDSet(user_id=USER_ID_TTS, app_id=APP_ID_TTS,)
36
 
37
  # Streamlit app
38
- st.title("Fake news detection")
39
 
40
 
41
  # Inserting logo
@@ -48,12 +48,12 @@ def get_tts_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()
 
35
  userDataObject_tts = resources_pb2.UserAppIDSet(user_id=USER_ID_TTS, app_id=APP_ID_TTS,)
36
 
37
  # Streamlit app
38
+ st.title("NewsGuardian")
39
 
40
 
41
  # Inserting logo
 
48
 
49
 
50
  # User input
51
+ model_type = st.selectbox("Select Model", ["NewsGuardian 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("NewsGuardian 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()