Samad2023 commited on
Commit
d8ec697
·
verified ·
1 Parent(s): 3206420

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -149,8 +149,12 @@ with gr.Blocks() as demo:
149
  )
150
  with gr.TabItem("V1-Graph"):
151
  info_graph = gr.Markdown(f"# La prochaine version est un agent graph.")
152
- image_path = os.path.abspath("Output\\graph.jpeg")
153
- image_display = gr.Image(image_path, label="Action Image")
 
 
 
 
154
 
155
  demo.launch(share=False)
156
  #demo.launch(share=True, auth=("username", "password"))
 
149
  )
150
  with gr.TabItem("V1-Graph"):
151
  info_graph = gr.Markdown(f"# La prochaine version 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
+
158
 
159
  demo.launch(share=False)
160
  #demo.launch(share=True, auth=("username", "password"))