/
githubmirror
/
babyagi
Обзор
Документация
Войти
/
githubmirror
/
babyagi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/custom_route_example.py
16 строк
449 B
Yohei Nakajima
Initial commit: Replace babyagi with babyagi 2
30 сен 2024, 11:31
30 сен 2024, 11:31
45f4809
Код
Авторство
О чём код?
# this is an example of how to use babyagi with custom routes from babyagi import create_app, register_function app = create_app('/dashboard') @register_function() def another_custom_function(): return "Hello from another custom function!" @app.route('/') def home(): return f"Welcome to the main app. Visit <a href=\"/dashboard\">/dashboard</a> for BabyAGI dashboard." if __name__ == "__main__": app.run(host='0.0.0.0', port=8080)