acecalisto3 commited on
Commit
33da3e9
1 Parent(s): 54cb025

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -61,8 +61,8 @@ def get_progress():
61
  def get_generated_files():
62
  return gr.HTML(lambda: f"Generated Files<pre><code style='overflow-x: auto'>{utils.format_directory(OUTPUT_DIR)}</pre></code>", every=3, elem_id="files")
63
 
64
- def get_download_btn():
65
- return gr.Button("Download All Files")
66
 
67
  def start(huggingface_key, ai_name, ai_role, top_5_goals):
68
  try:
@@ -168,7 +168,7 @@ with gr.Blocks(css=CSS) as app:
168
  deactivate_inputs, None, [yes_btn, consecutive_yes, custom_response]
169
  ).then(
170
  send_message,
171
- [con secutive_yes, chat_history, api, custom_response],
172
  [chatbot, consecutive_yes],
173
  ).then(
174
  activate_inputs, None, [yes_btn, consecutive_yes, custom_response]
 
61
  def get_generated_files():
62
  return gr.HTML(lambda: f"Generated Files<pre><code style='overflow-x: auto'>{utils.format_directory(OUTPUT_DIR)}</pre></code>", every=3, elem_id="files")
63
 
64
+ def get_download_btn():
65
+ return gr.Button("Download All Files") # Ensure consistent indentation
66
 
67
  def start(huggingface_key, ai_name, ai_role, top_5_goals):
68
  try:
 
168
  deactivate_inputs, None, [yes_btn, consecutive_yes, custom_response]
169
  ).then(
170
  send_message,
171
+ [consecutive_yes, chat_history, api, custom_response],
172
  [chatbot, consecutive_yes],
173
  ).then(
174
  activate_inputs, None, [yes_btn, consecutive_yes, custom_response]