nadim71 commited on
Commit
68d5b2c
·
verified ·
1 Parent(s): 37f936d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -59,7 +59,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
59
  task="text-generation",
60
  )
61
  )
62
- except Exception as e:
63
  print(f"Error instantiating agent: {e}")
64
  return f"Error initializing agent: {e}", None
65
 
@@ -206,9 +206,7 @@ if __name__ == "__main__":
206
 
207
  result = autonomous_agent(goal)
208
  print(f"\n🤖 Final Output:\n{result}\n")
209
- except Exception as e:
210
- print(f"Error instantiating agent: {e}")
211
- return f"Error initializing agent: {e}", None
212
  # In the case of an app running as a hugging Face space, this link points toward your codebase ( usefull for others so please keep it public)
213
  agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
214
  print(agent_code)
 
59
  task="text-generation",
60
  )
61
  )
62
+ except Exception as e:
63
  print(f"Error instantiating agent: {e}")
64
  return f"Error initializing agent: {e}", None
65
 
 
206
 
207
  result = autonomous_agent(goal)
208
  print(f"\n🤖 Final Output:\n{result}\n")
209
+
 
 
210
  # In the case of an app running as a hugging Face space, this link points toward your codebase ( usefull for others so please keep it public)
211
  agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
212
  print(agent_code)