gokaygokay commited on
Commit
83b5536
·
1 Parent(s): f3d0cbc

selected_type

Browse files
Files changed (1) hide show
  1. ui_components.py +11 -0
ui_components.py CHANGED
@@ -115,6 +115,17 @@ def create_interface():
115
  value="happy",
116
  interactive=True
117
  )
 
 
 
 
 
 
 
 
 
 
 
118
  custom_base_prompt = gr.Textbox(label="Custom Base Prompt", lines=5)
119
 
120
  # Add new components for LLM provider selection
 
115
  value="happy",
116
  interactive=True
117
  )
118
+
119
+ # Add the missing update_prompt_type function
120
+ def update_prompt_type(value):
121
+ global selected_prompt_type
122
+ selected_prompt_type = value
123
+ print(f"Updated prompt type: {selected_prompt_type}")
124
+ return value
125
+
126
+ # Connect the update_prompt_type function to the prompt_type dropdown
127
+ prompt_type.change(update_prompt_type, inputs=[prompt_type], outputs=[prompt_type])
128
+
129
  custom_base_prompt = gr.Textbox(label="Custom Base Prompt", lines=5)
130
 
131
  # Add new components for LLM provider selection