johnpaulbin commited on
Commit
3446f0f
1 Parent(s): 1e63407

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -172,7 +172,7 @@ with gr.Blocks() as demo:
172
  gr.Markdown(">Note: This A.I. has only been given the NBAA Management guide. Use the flashcards for specific week information.")
173
  chat_output = gr.Markdown(label="AI Response")
174
  chat_button = gr.Button("Ask AI")
175
-
176
  # Start button action to reveal the flashcard section
177
  start_button.click(lambda: gr.update(visible=True), inputs=[], outputs=flashcard_section)
178
  week_file.change(flashcard_ui, inputs=[week_file, index], outputs=[question_output, answer_output])
 
172
  gr.Markdown(">Note: This A.I. has only been given the NBAA Management guide. Use the flashcards for specific week information.")
173
  chat_output = gr.Markdown(label="AI Response")
174
  chat_button = gr.Button("Ask AI")
175
+ chat_button.click(chat_with_ai, inputs=[chat_input], outputs=[chat_output])
176
  # Start button action to reveal the flashcard section
177
  start_button.click(lambda: gr.update(visible=True), inputs=[], outputs=flashcard_section)
178
  week_file.change(flashcard_ui, inputs=[week_file, index], outputs=[question_output, answer_output])