Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -148,13 +148,19 @@ with gr.Blocks() as demo:
|
|
| 148 |
outputs=[info_text] + output_buttons # Mise à jour des éléments Markdown et boutons
|
| 149 |
)
|
| 150 |
with gr.TabItem("V1-Graph"):
|
| 151 |
-
info_graph = gr.Markdown(f"# La
|
| 152 |
def afficher_image():
|
| 153 |
# Remplacez le chemin par votre image
|
| 154 |
image_path = os.path.abspath("Output/graph.jpeg")
|
| 155 |
-
print(image_path)
|
| 156 |
return image_path
|
| 157 |
gr.Image(afficher_image())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
|
| 159 |
|
| 160 |
demo.launch(share=False)
|
|
|
|
| 148 |
outputs=[info_text] + output_buttons # Mise à jour des éléments Markdown et boutons
|
| 149 |
)
|
| 150 |
with gr.TabItem("V1-Graph"):
|
| 151 |
+
info_graph = gr.Markdown(f"# La version1 est un agent graph.")
|
| 152 |
def afficher_image():
|
| 153 |
# Remplacez le chemin par votre image
|
| 154 |
image_path = os.path.abspath("Output/graph.jpeg")
|
|
|
|
| 155 |
return image_path
|
| 156 |
gr.Image(afficher_image())
|
| 157 |
+
with gr.TabItem("V2-Graph-RAG"):
|
| 158 |
+
info_graph = gr.Markdown(f"# Dans la version2, RAG est intégré au graph.")
|
| 159 |
+
def afficher_image_graph():
|
| 160 |
+
# Remplacez le chemin par votre image
|
| 161 |
+
image_path = os.path.abspath("Output/graph_rag.jpeg")
|
| 162 |
+
return image_path
|
| 163 |
+
gr.Image(afficher_image_graph())
|
| 164 |
|
| 165 |
|
| 166 |
demo.launch(share=False)
|