inoid commited on
Commit
31b8b6f
·
1 Parent(s): 179f2c8

Update all

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,9 +6,9 @@ from seminar_edition_ai import upload_file_ex, predictContemplando, predictProcl
6
 
7
  HISTORY_ANSWER = ''
8
 
9
- def activeSermonGuideZone(buttonEvent):
10
  #print("Button show " + buttonEvent.label)
11
- return {text_button: gr.update (interactive = True), question_option: ['DEVOCIONALMENTE']}
12
 
13
  def showMessage(questionAnswer, KEY):
14
  if questionAnswer == None or questionAnswer == '' or len(questionAnswer) <= 7:
@@ -256,7 +256,7 @@ with gr.Blocks() as demo:
256
  text_output_aiAnswer = gr.Textbox(label="Ayuda a mi respuesta", lines = 10)
257
 
258
  inbtwContemplandoOne.click(
259
- fn = lambda x: {text_button: gr.update(interactive=True), question_option: ['DEVOCIONALMENTE']},
260
  inputs = inbtwContemplandoOne,
261
  outputs = [text_button, question_option]
262
  )
 
6
 
7
  HISTORY_ANSWER = ''
8
 
9
+ def activeSermonGuideZone(KEY):
10
  #print("Button show " + buttonEvent.label)
11
+ return {text_button: gr.update (interactive = True), question_option: ['KEY']}
12
 
13
  def showMessage(questionAnswer, KEY):
14
  if questionAnswer == None or questionAnswer == '' or len(questionAnswer) <= 7:
 
256
  text_output_aiAnswer = gr.Textbox(label="Ayuda a mi respuesta", lines = 10)
257
 
258
  inbtwContemplandoOne.click(
259
+ fn = lambda x: activeSermonGuideZone('DEVOCIONALMENTE'),
260
  inputs = inbtwContemplandoOne,
261
  outputs = [text_button, question_option]
262
  )