Spaces:
Running
Running
Doubleupai
commited on
Commit
•
00e2c1d
1
Parent(s):
7cf4cac
create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def generate_prompt(network_name, description):
|
4 |
+
return f"Generate a prompt for the neural network '{network_name}' which is described as: {description}"
|
5 |
+
|
6 |
+
iface = gr.Interface(
|
7 |
+
fn=generate_prompt,
|
8 |
+
inputs=["text", "text"],
|
9 |
+
outputs="text",
|
10 |
+
title="Neural Network Prompt Generator",
|
11 |
+
description="Enter the name and description of the neural network to generate a prompt."
|
12 |
+
)
|
13 |
+
|
14 |
+
iface.launch()
|