File size: 430 Bytes
00e2c1d
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

def generate_prompt(network_name, description):
    return f"Generate a prompt for the neural network '{network_name}' which is described as: {description}"

iface = gr.Interface(
    fn=generate_prompt,
    inputs=["text", "text"],
    outputs="text",
    title="Neural Network Prompt Generator",
    description="Enter the name and description of the neural network to generate a prompt."
)

iface.launch()