Spaces:
Sleeping
Sleeping
File size: 388 Bytes
16ea515 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import numpy as np
import gradio as gr
def create_array(shape):
shape = tuple(map(int, shape.split(',')))
arr= np.random.randint(0,100, size=shape)
return arr
x=gr.Interface(
fn=create_array,
inputs="text",
outputs="text",
title= "Random Array Generator",
description= "Enter the shape is the format comma-separated integers (e.g 2,3)"
)
x.launch() |