Spaces:
Sleeping
Sleeping
Update app.py
Browse files1667 unmodified lines166816691670167116721673167416751676167779 unmodified lines17571758175917601761176217631764176517661667 unmodified linesdef update_ai_dataset_selection(selection):global selected_dataset_aiselected_dataset_ai = selectionreturn compute_dataframe_proof_pointplaceholder_text = """<b>Prompt the TrustMaximiserAI to generate content for you.</b>79 unmodified lines# Define the radio button componentradio = gr.Radio(choices=["VW Customers", "VW Prospects"],label="Select a dataset you want to use for the TrustMaximiserAI",value=read_ai_dataset_selection(), # Initialize with the current selectionvisible=True,)# gr.Markdown(1667 unmodified lines16681669167016711672167316741675167616771678167916801681168279 unmodified lines17621763176417651766176717681769177017711667 unmodified linesdef update_ai_dataset_selection(selection):"""Updates the dataset selection based on the radio button input."""global selected_dataset_aiif selection == "VW Customers":selected_dataset_ai = vw_customers_state.value[0] # Use the customer datasetelif selection == "VW Prospects":selected_dataset_ai = vw_prospects_state.value[0] # Use the prospects datasetreturn compute_dataframe_proof_point()placeholder_text = """<b>Prompt the TrustMaximiserAI to generate content for you.</b>79 unmodified lines# Define the radio button componentradio = gr.Radio(choices=["VW Customers", "VW Prospects"],label="Select a dataset for TrustMaximiserAI",value="VW Customers", # Initialize with a default value (can be adjusted)visible=True,)# gr.Markdown(
app.py+12-7