faldeus0092
commited on
Commit
•
2ecaf72
1
Parent(s):
052e2c2
i hate commit
Browse files
app.py
CHANGED
@@ -203,8 +203,8 @@ with gr.Blocks(title="Intent Classification Demo", theme=theme) as interface:
|
|
203 |
ask_button.click(fn=raw_inference, inputs=[input_text, state, n_samples, threshold], outputs=[answer, ask_llm_button])
|
204 |
# ask_llm_button.click(fn=classify_intent, inputs=[input_text, history, answer, model_name], outputs=[LLM_prediction, LLM_prompt])
|
205 |
# ask_llm_button_raw.click(fn=classify_intent, inputs=[raw_input_text, raw_history, answer, model_name], outputs=[LLM_prediction, LLM_prompt])
|
206 |
-
ask_llm_button.click(fn=classify_intent, inputs=[input_text, history, answer, api_key], outputs=[LLM_prediction, LLM_prompt])
|
207 |
-
ask_llm_button_raw.click(fn=classify_intent, inputs=[raw_input_text, raw_history, answer, api_key], outputs=[LLM_prediction, LLM_prompt])
|
208 |
|
209 |
# interface.launch(debug=True)
|
210 |
interface.launch(share=True, debug=True)
|
|
|
203 |
ask_button.click(fn=raw_inference, inputs=[input_text, state, n_samples, threshold], outputs=[answer, ask_llm_button])
|
204 |
# ask_llm_button.click(fn=classify_intent, inputs=[input_text, history, answer, model_name], outputs=[LLM_prediction, LLM_prompt])
|
205 |
# ask_llm_button_raw.click(fn=classify_intent, inputs=[raw_input_text, raw_history, answer, model_name], outputs=[LLM_prediction, LLM_prompt])
|
206 |
+
ask_llm_button.click(fn=classify_intent, inputs=[input_text, history, answer, model_name, api_key], outputs=[LLM_prediction, LLM_prompt])
|
207 |
+
ask_llm_button_raw.click(fn=classify_intent, inputs=[raw_input_text, raw_history, answer, model_name, api_key], outputs=[LLM_prediction, LLM_prompt])
|
208 |
|
209 |
# interface.launch(debug=True)
|
210 |
interface.launch(share=True, debug=True)
|