Spaces:
Sleeping
Sleeping
File size: 572 Bytes
ab6f042 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import gradio as gr
import json
from PIL import Image
import numpy as np
# --- User Defined Logic ---
def strawberre() -> int:
"""Return the integer 3.
This function always returns the constant value 3.
Returns:
int: The number 3.
"""
return 3
# --- Interface Factory ---
def create_interface():
return gr.Interface(
fn=strawberre,
inputs=[gr.Textbox(label=k) for k in []],
outputs=gr.Textbox(label="The integer 3"),
title="strawberre",
description="Auto-generated tool: strawberre"
) |