nixaut-codelabs commited on
Commit
78e2a49
·
verified ·
1 Parent(s): 59eaafd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -9
app.py CHANGED
@@ -86,21 +86,28 @@ def enhance_gradio(prompt_text):
86
 
87
  iface = gr.Interface(
88
  fn=enhance_gradio,
89
- inputs=gr.Textbox(
90
- lines=5,
91
- placeholder="Enter your prompt here to enhance it...",
92
- label="Original Prompt"
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