alihmaou commited on
Commit
ab6f042
·
verified ·
1 Parent(s): a30a411

Deploy tools/strawberre.py via Meta-MCP

Browse files
Files changed (1) hide show
  1. tools/strawberre.py +25 -0
tools/strawberre.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import json
3
+ from PIL import Image
4
+ import numpy as np
5
+
6
+ # --- User Defined Logic ---
7
+ def strawberre() -> int:
8
+ """Return the integer 3.
9
+
10
+ This function always returns the constant value 3.
11
+
12
+ Returns:
13
+ int: The number 3.
14
+ """
15
+ return 3
16
+
17
+ # --- Interface Factory ---
18
+ def create_interface():
19
+ return gr.Interface(
20
+ fn=strawberre,
21
+ inputs=[gr.Textbox(label=k) for k in []],
22
+ outputs=gr.Textbox(label="The integer 3"),
23
+ title="strawberre",
24
+ description="Auto-generated tool: strawberre"
25
+ )