mirror of
https://github.com/Ladebeze66/projetcbaollm.git
synced 2025-12-13 10:46:53 +01:00
J8
This commit is contained in:
parent
8e33327c10
commit
705518cdf0
31
.gradio/certificate.pem
Normal file
31
.gradio/certificate.pem
Normal file
@ -0,0 +1,31 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
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
|
||||
-----END CERTIFICATE-----
|
||||
257
.gradio/flagged/dataset1.csv
Normal file
257
.gradio/flagged/dataset1.csv
Normal file
@ -0,0 +1,257 @@
|
||||
image,prompt,output,timestamp
|
||||
.gradio/flagged/image/c269ef789349f32a6feb/143414_image.png,"'que peux tu me dire en analisant cette image et le json suivant: [
|
||||
{
|
||||
""id"": 227288,
|
||||
""body"": """",
|
||||
""date"": ""2025-03-12 08:14:38"",
|
||||
""author_id"": [
|
||||
28961,
|
||||
""Fabien LAFAY""
|
||||
],
|
||||
""email_from"": ""\""Fabien LAFAY\"" <fabien@cbao.fr>"",
|
||||
""subject"": false,
|
||||
""parent_id"": false,
|
||||
""message_type"": ""notification"",
|
||||
""subtype_id"": [
|
||||
2,
|
||||
""Note""
|
||||
],
|
||||
""attachment_ids"": []
|
||||
},
|
||||
{
|
||||
""id"": 225765,
|
||||
""body"": ""Bonjour , Je tiens à m'excuser pour ce désagrément. J'ai relancé Quentin, qui s'engage à le mettre en ligne au plus vite. Je garde ce ticket ouvert jusqu'à sa mise à disposition afin de suivre votre demande de près. Je reste à votre entière disposition pour toute information complémentaire. Cordialement, --- Support technique Afin d'assurer une meilleure traçabilité et vous garantir une prise en charge optimale, nous vous invitons à envoyer vos demandes d'assistance technique à support@cbao.fr L'objectif du Support Technique est de vous aider : si vous rencontrez une difficulté, ou pour nous soumettre une ou des suggestions d'amélioration de nos logiciels ou de nos méthodes. Notre service est ouvert du lundi au vendredi de 9h à 12h et de 14h à 18h. Dès réception, un technicien prendra en charge votre demande et au besoin vous rappellera. Confidentialité : Ce courriel contient des informations confidentielles exclusivement réservées au destinataire mentionné. Si vous deviez recevoir cet e-mail par erreur, merci d’en avertir immédiatement l’expéditeur et de le supprimer de votre système informatique. Au cas où vous ne seriez pas destinataire de ce message, veuillez noter que sa divulgation, sa copie ou tout acte en rapport avec la communication du contenu des informations est strictement interdit."",
|
||||
""date"": ""2025-02-21 15:51:53"",
|
||||
""author_id"": [
|
||||
32165,
|
||||
""Romuald GRUSON""
|
||||
],
|
||||
""email_from"": ""support@cbao.fr"",
|
||||
""subject"": ""Re: [T10929] - TR: MAJ BRGlab"",
|
||||
""parent_id"": [
|
||||
225611,
|
||||
""[T10929] TR: MAJ BRGlab""
|
||||
],
|
||||
""message_type"": ""comment"",
|
||||
""subtype_id"": [
|
||||
1,
|
||||
""Discussions""
|
||||
],
|
||||
""attachment_ids"": []
|
||||
},
|
||||
{
|
||||
""id"": 225756,
|
||||
""body"": """",
|
||||
""date"": ""2025-02-21 15:17:55"",
|
||||
""author_id"": [
|
||||
32165,
|
||||
""Romuald GRUSON""
|
||||
],
|
||||
""email_from"": ""\""Romuald GRUSON\"" <romuald@cbao.fr>"",
|
||||
""subject"": false,
|
||||
""parent_id"": [
|
||||
225611,
|
||||
""[T10929] TR: MAJ BRGlab""
|
||||
],
|
||||
""message_type"": ""notification"",
|
||||
""subtype_id"": [
|
||||
16,
|
||||
""Task Created""
|
||||
],
|
||||
""attachment_ids"": []
|
||||
},
|
||||
{
|
||||
""id"": 225755,
|
||||
""body"": ""Bonjour, L'essai présent dans notre base de données est une tentative d'essai réalisée par moi qui ne fonctionne pas. En cause le module ZK qui ne gère pas efficacement l'affichage des résultats en puissance de 10. J'avais fait un ticket en ce sens il y a 2 ans et demi à ce sujet. Le ticket avait été marqué comme étant une priorité il y a déjà plusieurs mois, et Quentin devait le passer en mode système en le créant en code. Lors de notre entretien sur Teams le 05/02, Quentin m'avait informé que l'essai serait disponible lors de la mise à jour prévue le lundi 10/02. Pouvez-vous me donner plus d'informations au sujet de cet essai ? Je tiens à préciser qu'après 2 ans et demi d'attente, le critère d'urgence peut paraitre relatif, mais à ce jour nous en avons un besoin impératif. Cordialement, Olivier Antoni Technicien Egis Géotechnique ( 07 88 25 39 98 olivier.antoni@egis -group.com I www.egis.fr Egis Géotechnique 3 rue docteur Schweitzer 38180 Seyssins FRANCE Suivez Egis sur : P Afin de contribuer au respect de l'environnement, merci de n'imprimer ce mail qu'en cas de nécessité De : support@cbao.fr <support@cbao.fr> Envoyé : jeudi 20 février 2025 14:13 À : ANTONI Olivier <Olivier.ANTONI@egis-group.com> Objet : Re: [T10929] - TR: MAJ BRGlab /!\\ Courriel externe - Merci d'être prudent avec les liens et les pièces jointes /!\\ External email - Please be careful with links and attachments /!\\ Bonjour , Je constate que la norme est déjà présente dans votre base de données. Est-ce sur un type de matériau spécifique que vous ne pouvez pas y accéder ? Pouvez-vous préciser le contexte afin que nous puissions identifier l'origine du problème ? Je reste à votre entière disposition pour toute information complémentaire. Cordialement, --- Support technique Afin d'assurer une meilleure traçabilité et vous garantir une prise en charge optimale, nous vous invitons à envoyer vos demandes d'assistance technique à support@cbao.fr L'objectif du Support Technique est de vous aider : si vous rencontrez une difficulté, ou pour nous soumettre une ou des suggestions d'amélioration de nos logiciels ou de nos méthodes. Notre service est ouvert du lundi au vendredi de 9h à 12h et de 14h à 18h. Dès réception, un technicien prendra en charge votre demande et au besoin vous rappellera. Confidentialité : Ce courriel contient des informations confidentielles exclusivement réservées au destinataire mentionné. Si vous deviez recevoir cet e-mail par erreur, merci d’en avertir immédiatement l’expéditeur et de le supprimer de votre système informatique. Au cas où vous ne seriez pas destinataire de ce message, veuillez noter que sa divulgation, sa copie ou tout acte en rapport avec la communication du contenu des informations est strictement interdit. Envoyé par CBAO S.A.R.L. . Ce message et ses pièces jointes peuvent contenir des informations confidentielles ou privilégiées et ne doivent donc pas être diffusés, exploités ou copiés sans autorisation. Si vous avez reçu ce message par erreur, merci de le signaler à l'expéditeur et le détruire ainsi que les pièces jointes. Les messages électroniques étant susceptibles d'altération, Egis décline toute responsabilité si ce message a été altéré, déformé ou falsifié. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Egis is not liable for messages that have been modified, changed or falsified. Thank you."",
|
||||
""date"": ""2025-02-21 15:14:30"",
|
||||
""author_id"": [
|
||||
5654,
|
||||
""EGIS SA, Olivier ANTONI""
|
||||
],
|
||||
""email_from"": ""ANTONI Olivier <Olivier.ANTONI@egis-group.com>"",
|
||||
""subject"": ""RE: [T10929] - TR: MAJ BRGlab"",
|
||||
""parent_id"": [
|
||||
225611,
|
||||
""[T10929] TR: MAJ BRGlab""
|
||||
],
|
||||
""message_type"": ""email"",
|
||||
""subtype_id"": [
|
||||
1,
|
||||
""Discussions""
|
||||
],
|
||||
""attachment_ids"": [
|
||||
143501,
|
||||
143499,
|
||||
143497,
|
||||
143495,
|
||||
143493,
|
||||
143491
|
||||
]
|
||||
},
|
||||
{
|
||||
""id"": 225636,
|
||||
""body"": """",
|
||||
""date"": ""2025-02-20 13:13:34"",
|
||||
""author_id"": [
|
||||
32165,
|
||||
""Romuald GRUSON""
|
||||
],
|
||||
""email_from"": ""\""Romuald GRUSON\"" <romuald@cbao.fr>"",
|
||||
""subject"": false,
|
||||
""parent_id"": [
|
||||
225611,
|
||||
""[T10929] TR: MAJ BRGlab""
|
||||
],
|
||||
""message_type"": ""notification"",
|
||||
""subtype_id"": [
|
||||
19,
|
||||
""Stage Changed""
|
||||
],
|
||||
""attachment_ids"": []
|
||||
},
|
||||
{
|
||||
""id"": 225635,
|
||||
""body"": """",
|
||||
""date"": ""2025-02-20 13:13:34"",
|
||||
""author_id"": [
|
||||
32165,
|
||||
""Romuald GRUSON""
|
||||
],
|
||||
""email_from"": ""\""Romuald GRUSON\"" <romuald@cbao.fr>"",
|
||||
""subject"": false,
|
||||
""parent_id"": false,
|
||||
""message_type"": ""notification"",
|
||||
""subtype_id"": [
|
||||
2,
|
||||
""Note""
|
||||
],
|
||||
""attachment_ids"": []
|
||||
},
|
||||
{
|
||||
""id"": 225634,
|
||||
""body"": """",
|
||||
""date"": ""2025-02-20 13:13:32"",
|
||||
""author_id"": [
|
||||
32165,
|
||||
""Romuald GRUSON""
|
||||
],
|
||||
""email_from"": ""\""Romuald GRUSON\"" <romuald@cbao.fr>"",
|
||||
""subject"": false,
|
||||
""parent_id"": false,
|
||||
""message_type"": ""notification"",
|
||||
""subtype_id"": [
|
||||
2,
|
||||
""Note""
|
||||
],
|
||||
""attachment_ids"": []
|
||||
},
|
||||
{
|
||||
""id"": 225633,
|
||||
""body"": ""Bonjour , Je constate que la norme est déjà présente dans votre base de données. Est-ce sur un type de matériau spécifique que vous ne pouvez pas y accéder ? Pouvez-vous préciser le contexte afin que nous puissions identifier l'origine du problème ? Je reste à votre entière disposition pour toute information complémentaire. Cordialement, --- Support technique Afin d'assurer une meilleure traçabilité et vous garantir une prise en charge optimale, nous vous invitons à envoyer vos demandes d'assistance technique à support@cbao.fr L'objectif du Support Technique est de vous aider : si vous rencontrez une difficulté, ou pour nous soumettre une ou des suggestions d'amélioration de nos logiciels ou de nos méthodes. Notre service est ouvert du lundi au vendredi de 9h à 12h et de 14h à 18h. Dès réception, un technicien prendra en charge votre demande et au besoin vous rappellera. Confidentialité : Ce courriel contient des informations confidentielles exclusivement réservées au destinataire mentionné. Si vous deviez recevoir cet e-mail par erreur, merci d’en avertir immédiatement l’expéditeur et de le supprimer de votre système informatique. Au cas où vous ne seriez pas destinataire de ce message, veuillez noter que sa divulgation, sa copie ou tout acte en rapport avec la communication du contenu des informations est strictement interdit."",
|
||||
""date"": ""2025-02-20 13:13:30"",
|
||||
""author_id"": [
|
||||
32165,
|
||||
""Romuald GRUSON""
|
||||
],
|
||||
""email_from"": ""support@cbao.fr"",
|
||||
""subject"": ""Re: [T10929] - TR: MAJ BRGlab"",
|
||||
""parent_id"": [
|
||||
225611,
|
||||
""[T10929] TR: MAJ BRGlab""
|
||||
],
|
||||
""message_type"": ""comment"",
|
||||
""subtype_id"": [
|
||||
1,
|
||||
""Discussions""
|
||||
],
|
||||
""attachment_ids"": [
|
||||
143414
|
||||
]
|
||||
},
|
||||
{
|
||||
""id"": 225614,
|
||||
""body"": """",
|
||||
""date"": ""2025-02-20 09:37:17"",
|
||||
""author_id"": [
|
||||
2,
|
||||
""OdooBot""
|
||||
],
|
||||
""email_from"": ""\""OdooBot\"" <odoobot@example.com>"",
|
||||
""subject"": false,
|
||||
""parent_id"": false,
|
||||
""message_type"": ""notification"",
|
||||
""subtype_id"": [
|
||||
2,
|
||||
""Note""
|
||||
],
|
||||
""attachment_ids"": []
|
||||
},
|
||||
{
|
||||
""id"": 225613,
|
||||
""body"": """",
|
||||
""date"": ""2025-02-20 09:37:17"",
|
||||
""author_id"": [
|
||||
2,
|
||||
""OdooBot""
|
||||
],
|
||||
""email_from"": ""\""OdooBot\"" <odoobot@example.com>"",
|
||||
""subject"": false,
|
||||
""parent_id"": false,
|
||||
""message_type"": ""notification"",
|
||||
""subtype_id"": [
|
||||
2,
|
||||
""Note""
|
||||
],
|
||||
""attachment_ids"": []
|
||||
},
|
||||
{
|
||||
""id"": 225612,
|
||||
""body"": ""Bonjour Quentin, Je constate que l'essai de perméabilité n'a pas été ajouté, penses-tu qu'il puisse l'être rapidement ? Cordialement, Olivier Antoni Technicien Egis Géotechnique ( 07 88 25 39 98 olivier.antoni@egis -group.com I www.egis.fr Egis Géotechnique 3 rue docteur Schweitzer 38180 Seyssins FRANCE Suivez Egis sur : P Afin de contribuer au respect de l'environnement, merci de n'imprimer ce mail qu'en cas de nécessité De : ANTONI Olivier <Olivier.ANTONI@egis-group.com> Envoyé : lundi 17 février 2025 11:23 À : Quentin Faivre <quentin.faivre@cbao.fr> Objet : MAJ BRGlab Salut Quentin, Est-ce que tu as pu faire la mise à jour de BRGLab, avec notamment l'ajout de l'essai de perméabilité (NF EN ISO 17892-11) ? Cordialement, Olivier. Olivier Antoni Technicien Egis Géotechnique ( 07 88 25 39 98 olivier.antoni@egis -group.com I www.egis.fr Egis Géotechnique 3 rue docteur Schweitzer 38180 Seyssins FRANCE Suivez Egis sur : P Afin de contribuer au respect de l'environnement, merci de n'imprimer ce mail qu'en cas de nécessité Ce message et ses pièces jointes peuvent contenir des informations confidentielles ou privilégiées et ne doivent donc pas être diffusés, exploités ou copiés sans autorisation. Si vous avez reçu ce message par erreur, merci de le signaler à l'expéditeur et le détruire ainsi que les pièces jointes. Les messages électroniques étant susceptibles d'altération, Egis décline toute responsabilité si ce message a été altéré, déformé ou falsifié. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Egis is not liable for messages that have been modified, changed or falsified. Thank you."",
|
||||
""date"": ""2025-02-20 09:36:33"",
|
||||
""author_id"": [
|
||||
5654,
|
||||
""EGIS SA, Olivier ANTONI""
|
||||
],
|
||||
""email_from"": ""ANTONI Olivier <Olivier.ANTONI@egis-group.com>"",
|
||||
""subject"": ""TR: MAJ BRGlab"",
|
||||
""parent_id"": [
|
||||
225611,
|
||||
""[T10929] TR: MAJ BRGlab""
|
||||
],
|
||||
""message_type"": ""email"",
|
||||
""subtype_id"": [
|
||||
1,
|
||||
""Discussions""
|
||||
],
|
||||
""attachment_ids"": [
|
||||
143378,
|
||||
143376,
|
||||
143374,
|
||||
143372,
|
||||
143370,
|
||||
143368,
|
||||
143366,
|
||||
143364,
|
||||
143362,
|
||||
143360
|
||||
]
|
||||
},
|
||||
{
|
||||
""id"": 225611,
|
||||
""body"": """",
|
||||
""date"": ""2025-02-20 09:37:16"",
|
||||
""author_id"": [
|
||||
2,
|
||||
""OdooBot""
|
||||
],
|
||||
""email_from"": ""\""OdooBot\"" <odoobot@example.com>"",
|
||||
""subject"": false,
|
||||
""parent_id"": false,
|
||||
""message_type"": ""notification"",
|
||||
""subtype_id"": [
|
||||
16,
|
||||
""Task Created""
|
||||
],
|
||||
""attachment_ids"": []
|
||||
}
|
||||
]",❌ Veuillez fournir une image.,2025-03-20 16:16:47.038367
|
||||
|
BIN
.gradio/flagged/image/c269ef789349f32a6feb/143414_image.png
Normal file
BIN
.gradio/flagged/image/c269ef789349f32a6feb/143414_image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
BIN
gui/lib/python3.12/site-packages/gradio/frpc_linux_amd64_v0.3
Executable file
BIN
gui/lib/python3.12/site-packages/gradio/frpc_linux_amd64_v0.3
Executable file
Binary file not shown.
59
llama_vision_gradio.py
Normal file
59
llama_vision_gradio.py
Normal file
@ -0,0 +1,59 @@
|
||||
import gradio as gr
|
||||
import requests
|
||||
from PIL import Image
|
||||
import numpy as np
|
||||
import json
|
||||
import os
|
||||
|
||||
# 🔥 Serveur Ollama
|
||||
OLLAMA_SERVER = "http://localhost:11434/api/generate"
|
||||
|
||||
def llama_vision_analysis(image, prompt, json_file):
|
||||
if image is None:
|
||||
return "❌ Veuillez fournir une image."
|
||||
if not prompt:
|
||||
return "❌ Veuillez entrer une question."
|
||||
|
||||
# 📌 Vérifier et convertir l'image (Gradio fournit parfois un numpy array)
|
||||
if isinstance(image, np.ndarray):
|
||||
image = Image.fromarray(image) # Convertir numpy.ndarray en Image PIL
|
||||
|
||||
# 📂 Sauvegarder l'image
|
||||
image_path = "temp_image.jpg"
|
||||
image.save(image_path)
|
||||
|
||||
# 📂 Lire le contenu du fichier JSON correctement
|
||||
json_data = {}
|
||||
if json_file is not None:
|
||||
try:
|
||||
json_data = json.loads(json_file) # Corrige l'erreur d'attribut
|
||||
except Exception as e:
|
||||
return f"⚠️ Erreur de lecture du JSON : {str(e)}"
|
||||
|
||||
# 📡 Construire la requête pour Ollama
|
||||
request_data = {
|
||||
"model": "llama3.2-vision:90b-instruct-q8_0",
|
||||
"prompt": f"{prompt}\n\nAnalyse aussi ces données JSON : {json_data}",
|
||||
"images": [image_path]
|
||||
}
|
||||
|
||||
# 📨 Envoyer la requête à Ollama
|
||||
try:
|
||||
response = requests.post(OLLAMA_SERVER, json=request_data)
|
||||
response.raise_for_status()
|
||||
return response.json().get("response", "⚠️ Réponse vide")
|
||||
|
||||
except requests.exceptions.RequestException as e:
|
||||
return f"⚠️ Erreur Ollama : {str(e)}"
|
||||
|
||||
# 🎨 Interface Gradio
|
||||
interface = gr.Interface(
|
||||
fn=llama_vision_analysis,
|
||||
inputs=["image", "text", "text"], # Utiliser "text" pour JSON
|
||||
outputs="text",
|
||||
title="Llama-Vision 90B - Analyse Image, Texte & JSON",
|
||||
description="Charge une image, un fichier JSON et entre une question pour obtenir une réponse détaillée de Llama-Vision."
|
||||
)
|
||||
|
||||
# 🔥 Lancer Gradio
|
||||
interface.launch(server_name="0.0.0.0", server_port=7860, share=True)
|
||||
BIN
temp_image.jpg
Normal file
BIN
temp_image.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
Loading…
x
Reference in New Issue
Block a user