Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -444,8 +444,7 @@ with gr.Blocks(title="π₯ Advanced Coding Copilot", css=custom_css, theme=gr.th
|
|
| 444 |
analysis_type = gr.Dropdown(
|
| 445 |
choices=["review", "explain", "optimize", "debug", "document", "custom"],
|
| 446 |
value="review",
|
| 447 |
-
label="π Analysis Type"
|
| 448 |
-
info="Choose analysis type or select 'custom' to write your own prompt"
|
| 449 |
)
|
| 450 |
custom_prompt = gr.Textbox(
|
| 451 |
label="βοΈ Custom Prompt (when Analysis Type = 'custom')",
|
|
@@ -492,8 +491,7 @@ with gr.Blocks(title="π₯ Advanced Coding Copilot", css=custom_css, theme=gr.th
|
|
| 492 |
reference_files = gr.File(
|
| 493 |
label="π Reference Files (optional)",
|
| 494 |
file_count="multiple",
|
| 495 |
-
file_types=[".py", ".ipynb"]
|
| 496 |
-
info="Upload files to use as reference/context"
|
| 497 |
)
|
| 498 |
generate_btn = gr.Button("π― Generate Code", variant="primary", size="lg")
|
| 499 |
|
|
@@ -550,8 +548,7 @@ with gr.Blocks(title="π₯ Advanced Coding Copilot", css=custom_css, theme=gr.th
|
|
| 550 |
label="π Chat History",
|
| 551 |
lines=10,
|
| 552 |
max_lines=20,
|
| 553 |
-
show_copy_button=True
|
| 554 |
-
info="Complete conversation history"
|
| 555 |
)
|
| 556 |
download_chat = gr.File(
|
| 557 |
label="πΎ Download Chat Response",
|
|
|
|
| 444 |
analysis_type = gr.Dropdown(
|
| 445 |
choices=["review", "explain", "optimize", "debug", "document", "custom"],
|
| 446 |
value="review",
|
| 447 |
+
label="π Analysis Type"
|
|
|
|
| 448 |
)
|
| 449 |
custom_prompt = gr.Textbox(
|
| 450 |
label="βοΈ Custom Prompt (when Analysis Type = 'custom')",
|
|
|
|
| 491 |
reference_files = gr.File(
|
| 492 |
label="π Reference Files (optional)",
|
| 493 |
file_count="multiple",
|
| 494 |
+
file_types=[".py", ".ipynb"]
|
|
|
|
| 495 |
)
|
| 496 |
generate_btn = gr.Button("π― Generate Code", variant="primary", size="lg")
|
| 497 |
|
|
|
|
| 548 |
label="π Chat History",
|
| 549 |
lines=10,
|
| 550 |
max_lines=20,
|
| 551 |
+
show_copy_button=True
|
|
|
|
| 552 |
)
|
| 553 |
download_chat = gr.File(
|
| 554 |
label="πΎ Download Chat Response",
|