Spaces:
Sleeping
Sleeping
Update all changes
Browse files
app.py
CHANGED
@@ -10,10 +10,10 @@ def activeSermonGuideZone(buttonEvent):
|
|
10 |
#print("Button show " + buttonEvent.label)
|
11 |
return gr.update (interactive = True)
|
12 |
|
13 |
-
def showMessage(questionAnswer):
|
14 |
if questionAnswer == None or questionAnswer == '' or len(questionAnswer) <= 7:
|
15 |
-
raise gr.Error("You must write some answer or more longer")
|
16 |
-
raise gr.Error(
|
17 |
|
18 |
with gr.Blocks() as demo:
|
19 |
gr.Markdown("SermonLab AI Demo.")
|
@@ -259,7 +259,7 @@ with gr.Blocks() as demo:
|
|
259 |
outputs = [text_button]
|
260 |
)
|
261 |
|
262 |
-
text_button.click(fn = showMessage, inputs = text_output_guia, outputs = text_output_aiAnswer)
|
263 |
|
264 |
if __name__ == "__main__":
|
265 |
llmBuilder = GeminiLLM()
|
|
|
10 |
#print("Button show " + buttonEvent.label)
|
11 |
return gr.update (interactive = True)
|
12 |
|
13 |
+
def showMessage(questionAnswer, KEY):
|
14 |
if questionAnswer == None or questionAnswer == '' or len(questionAnswer) <= 7:
|
15 |
+
raise gr.Error(f"You must write some answer or more longer {KEY}")
|
16 |
+
raise gr.Error(f" No implemented yet {KEY}!!!")
|
17 |
|
18 |
with gr.Blocks() as demo:
|
19 |
gr.Markdown("SermonLab AI Demo.")
|
|
|
259 |
outputs = [text_button]
|
260 |
)
|
261 |
|
262 |
+
text_button.click(fn = showMessage, inputs = [text_output_guia, 'PRUEBA'], outputs = text_output_aiAnswer)
|
263 |
|
264 |
if __name__ == "__main__":
|
265 |
llmBuilder = GeminiLLM()
|