Spaces:
Sleeping
Sleeping
Commit ·
ee2995d
1
Parent(s): c5eefe7
updated paste functions and web search
Browse files
app.py
CHANGED
|
@@ -62,10 +62,10 @@ with gr.Blocks() as demo:
|
|
| 62 |
interactive=True,
|
| 63 |
placeholder="Discuss architecture, paste code blocks, or ask CoderG to produce course documentation...",
|
| 64 |
show_label=False,
|
| 65 |
-
lines=
|
| 66 |
-
max_lines=10,
|
| 67 |
scale=8,
|
| 68 |
-
submit_btn=
|
| 69 |
)
|
| 70 |
|
| 71 |
# 2. Wire Up the Component Handlers - 2. Provide a distinct, clear upload node that connects to your perception agent pipeline
|
|
|
|
| 62 |
interactive=True,
|
| 63 |
placeholder="Discuss architecture, paste code blocks, or ask CoderG to produce course documentation...",
|
| 64 |
show_label=False,
|
| 65 |
+
lines=1, # <--- Crucial change: Reverts default Enter behavior back to sending
|
| 66 |
+
max_lines=10, # <--- Keeps the box flexible so it expands when pasting large text such as code bases
|
| 67 |
scale=8,
|
| 68 |
+
submit_btn=False # <--- Removes the forced sidebar submit button, allowing 'Enter' to natively act as the submission key
|
| 69 |
)
|
| 70 |
|
| 71 |
# 2. Wire Up the Component Handlers - 2. Provide a distinct, clear upload node that connects to your perception agent pipeline
|