Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,8 +46,12 @@ with gr.Blocks() as demo:
|
|
| 46 |
prompt_input = gr.Textbox(label="Prompt Input Text. 77 Token (Keyword or Symbol) Maximum")
|
| 47 |
|
| 48 |
# การกำหนดการทำงานเมื่อคลิกปุ่ม
|
| 49 |
-
button1.click(fn=update_prompt_textbox, inputs=[
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
# อินเทอร์เฟซสำหรับทำงานร่วมกับโมเดล
|
| 53 |
gr.Interface(
|
|
|
|
| 46 |
prompt_input = gr.Textbox(label="Prompt Input Text. 77 Token (Keyword or Symbol) Maximum")
|
| 47 |
|
| 48 |
# การกำหนดการทำงานเมื่อคลิกปุ่ม
|
| 49 |
+
button1.click(fn=update_prompt_textbox, inputs=[], outputs=prompt_input, queue=False).then(
|
| 50 |
+
update_prompt_textbox, inputs=[], outputs=prompt_input, queue=False
|
| 51 |
+
)
|
| 52 |
+
button2.click(fn=update_prompt_textbox, inputs=[], outputs=prompt_input, queue=False).then(
|
| 53 |
+
update_prompt_textbox, inputs=[], outputs=prompt_input, queue=False
|
| 54 |
+
)
|
| 55 |
|
| 56 |
# อินเทอร์เฟซสำหรับทำงานร่วมกับโมเดล
|
| 57 |
gr.Interface(
|