如何通过浏览器 运行 python 服务器上的应用程序

How to run python app on server through browser

我刚开始使用 PYTHON,现在我想 运行 服务器上的 google 视觉云应用程序,但我不确定如何开始。 我确实有一台服务器正在 运行 正在 http://18.217.137.107 and the app source code looks like https://cloud.google.com/vision/docs/detecting-landmarks#vision-landmark-detection-python 上运行。 任何帮助将不胜感激。

请参阅 this documentation about deploying Python application using Cloud Storage to App Engine Flex. Also, you might find this 文档以向 Google Cloud Vision API 发出有用的 HTTP 请求,但这是基于 Java 而不是 Python.

您需要的是一个基于 django/flask 等框架构建的网络应用程序。您可以在以下 link 中找到一个基本的应用程序示例: Create a basic GCP app using Flask