Spaces:
Runtime error
Runtime error
Commit
·
5ca8659
1
Parent(s):
375f31b
update app
Browse files
app.py
CHANGED
@@ -105,7 +105,11 @@ with gr.Blocks(theme=gr.themes.Monochrome(radius_size=gr.themes.sizes.radius_sm)
|
|
105 |
with gr.Column(scale=1, min_width=800, elem_id="#gen-output"):
|
106 |
generation = gr.Markdown(value="")
|
107 |
|
108 |
-
generate_button.click(
|
|
|
|
|
|
|
|
|
109 |
# clear_button.click(fn=lambda: [None, None, None, None, None], outputs=[gender, level, muscle_group, equipment, duration])
|
110 |
|
111 |
demo.launch(share=False)
|
|
|
105 |
with gr.Column(scale=1, min_width=800, elem_id="#gen-output"):
|
106 |
generation = gr.Markdown(value="")
|
107 |
|
108 |
+
generate_button.click(
|
109 |
+
partial(run, vectorstore=vectorstore, system_prompt=system_prompt, llm=llm),
|
110 |
+
inputs=[gender, level, muscle_group, equipment, duration],
|
111 |
+
outputs=generation
|
112 |
+
)
|
113 |
# clear_button.click(fn=lambda: [None, None, None, None, None], outputs=[gender, level, muscle_group, equipment, duration])
|
114 |
|
115 |
demo.launch(share=False)
|