Update app.py
Browse files
app.py
CHANGED
|
@@ -38,16 +38,16 @@ async def advancedPromptPipeline(InputPrompt, model="gpt-4o-mini", temperature=0
|
|
| 38 |
|
| 39 |
demo = gr.Interface(fn=advancedPromptPipeline,
|
| 40 |
inputs=[
|
| 41 |
-
gr.Textbox(lines=
|
| 42 |
gr.Radio(["gpt-4o-mini", "gpt-4o"], value="gpt-4o-mini", label="Select Model", info="Recommended: gpt-4o-mini"),
|
| 43 |
gr.Slider(minimum=0.0, maximum=1.0, value=0.0, step=0.1, label="Temperature", info="Recommended: Temperature=0.0")
|
| 44 |
],
|
| 45 |
outputs=[
|
| 46 |
-
gr.Textbox(lines=
|
| 47 |
],
|
| 48 |
title="Advanced Prompt Generator",
|
| 49 |
description="This tool will enhance any given input for the optimal output!",
|
| 50 |
-
theme="
|
| 51 |
)
|
| 52 |
|
| 53 |
|
|
|
|
| 38 |
|
| 39 |
demo = gr.Interface(fn=advancedPromptPipeline,
|
| 40 |
inputs=[
|
| 41 |
+
gr.Textbox(lines=12, placeholder="Enter your prompt", label="Input Prompt", min_width=100),
|
| 42 |
gr.Radio(["gpt-4o-mini", "gpt-4o"], value="gpt-4o-mini", label="Select Model", info="Recommended: gpt-4o-mini"),
|
| 43 |
gr.Slider(minimum=0.0, maximum=1.0, value=0.0, step=0.1, label="Temperature", info="Recommended: Temperature=0.0")
|
| 44 |
],
|
| 45 |
outputs=[
|
| 46 |
+
gr.Textbox(lines=23, label="Advanced Prompt", show_copy_button=True, autoscroll=False, min_width=220),
|
| 47 |
],
|
| 48 |
title="Advanced Prompt Generator",
|
| 49 |
description="This tool will enhance any given input for the optimal output!",
|
| 50 |
+
theme="base"
|
| 51 |
)
|
| 52 |
|
| 53 |
|