Update app.py
Browse files
app.py
CHANGED
@@ -41,6 +41,15 @@ genai.configure(api_key=GOOGLE_API_KEY) # Remplacez par votre clé API
|
|
41 |
app = Flask(__name__)
|
42 |
CORS(app)
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
# Prompt pour la détection d'objets
|
45 |
DETECTION_PROMPT = "Detect items, with no more than 20 items. Output a json list where each entry contains the 2D bounding box in \"box_2d\" and a text label in \"label\"."
|
46 |
|
|
|
41 |
app = Flask(__name__)
|
42 |
CORS(app)
|
43 |
|
44 |
+
|
45 |
+
@app.route('/', methods=['GET'])
|
46 |
+
def svt():
|
47 |
+
"""Renders the SVT page."""
|
48 |
+
return render_template("svt.html")
|
49 |
+
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
# Prompt pour la détection d'objets
|
54 |
DETECTION_PROMPT = "Detect items, with no more than 20 items. Output a json list where each entry contains the 2D bounding box in \"box_2d\" and a text label in \"label\"."
|
55 |
|