Aktraiser
commited on
Commit
·
9f18da6
1
Parent(s):
f7dd4c5
new
Browse files
app.py
CHANGED
@@ -296,6 +296,16 @@ def list_figma_team_projects(team_id: str = "") -> str:
|
|
296 |
def setup_demo():
|
297 |
"""Configure l'interface Gradio pour le serveur MCP"""
|
298 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
with gr.Blocks(
|
300 |
title="🎨 Figma MCP Server",
|
301 |
theme=gr.themes.Soft(),
|
@@ -368,17 +378,17 @@ def setup_demo():
|
|
368 |
)
|
369 |
|
370 |
test_info_btn.click(
|
371 |
-
|
372 |
outputs=[status_output]
|
373 |
)
|
374 |
|
375 |
test_comments_btn.click(
|
376 |
-
|
377 |
outputs=[status_output]
|
378 |
)
|
379 |
|
380 |
test_user_btn.click(
|
381 |
-
|
382 |
outputs=[status_output]
|
383 |
)
|
384 |
|
|
|
296 |
def setup_demo():
|
297 |
"""Configure l'interface Gradio pour le serveur MCP"""
|
298 |
|
299 |
+
# Fonctions wrapper pour éviter les problèmes avec les lambdas
|
300 |
+
def test_file_info():
|
301 |
+
return get_figma_file_info()
|
302 |
+
|
303 |
+
def test_comments():
|
304 |
+
return get_figma_comments()
|
305 |
+
|
306 |
+
def test_user():
|
307 |
+
return get_figma_user_info()
|
308 |
+
|
309 |
with gr.Blocks(
|
310 |
title="🎨 Figma MCP Server",
|
311 |
theme=gr.themes.Soft(),
|
|
|
378 |
)
|
379 |
|
380 |
test_info_btn.click(
|
381 |
+
test_file_info,
|
382 |
outputs=[status_output]
|
383 |
)
|
384 |
|
385 |
test_comments_btn.click(
|
386 |
+
test_comments,
|
387 |
outputs=[status_output]
|
388 |
)
|
389 |
|
390 |
test_user_btn.click(
|
391 |
+
test_user,
|
392 |
outputs=[status_output]
|
393 |
)
|
394 |
|