promtfactory0 / app.py
Doubleupai's picture
create app.py
00e2c1d verified
raw
history blame contribute delete
430 Bytes
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()