Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,21 +86,28 @@ def enhance_gradio(prompt_text):
|
|
| 86 |
|
| 87 |
iface = gr.Interface(
|
| 88 |
fn=enhance_gradio,
|
| 89 |
-
inputs=
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
outputs=gr.Textbox(
|
| 95 |
lines=8,
|
| 96 |
label="Enhanced Prompt"
|
| 97 |
),
|
| 98 |
title="AI Prompt Enhancer",
|
| 99 |
-
description="Transform your basic prompts into detailed, effective instructions.",
|
| 100 |
examples=[
|
| 101 |
-
["Write a story about a robot"],
|
| 102 |
-
["Explain machine learning"],
|
| 103 |
-
["Create a marketing plan"]
|
| 104 |
]
|
| 105 |
)
|
| 106 |
|
|
|
|
| 86 |
|
| 87 |
iface = gr.Interface(
|
| 88 |
fn=enhance_gradio,
|
| 89 |
+
inputs=[
|
| 90 |
+
gr.Textbox(
|
| 91 |
+
lines=5,
|
| 92 |
+
placeholder="Enter your prompt here to enhance it...",
|
| 93 |
+
label="Original Prompt"
|
| 94 |
+
),
|
| 95 |
+
gr.Textbox(
|
| 96 |
+
placeholder="Enter your API key",
|
| 97 |
+
label="API Key",
|
| 98 |
+
type="password"
|
| 99 |
+
)
|
| 100 |
+
],
|
| 101 |
outputs=gr.Textbox(
|
| 102 |
lines=8,
|
| 103 |
label="Enhanced Prompt"
|
| 104 |
),
|
| 105 |
title="AI Prompt Enhancer",
|
| 106 |
+
description="Transform your basic prompts into detailed, effective instructions. API key required.",
|
| 107 |
examples=[
|
| 108 |
+
["Write a story about a robot", ""],
|
| 109 |
+
["Explain machine learning", ""],
|
| 110 |
+
["Create a marketing plan", ""]
|
| 111 |
]
|
| 112 |
)
|
| 113 |
|