Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -148,9 +148,9 @@ def main():
|
|
148 |
# max_length = 12000 - optimal for gpt35 turbo. 2x=24000 for gpt4. 8x=96000 for gpt4-32k.
|
149 |
max_length = st.sidebar.slider("File section length for large files", min_value=1000, max_value=128000, value=12000, step=1000)
|
150 |
|
151 |
-
colprompt, colupload = st.columns([5,
|
152 |
with colprompt:
|
153 |
-
user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=
|
154 |
with colupload:
|
155 |
uploaded_file = st.file_uploader("Add a file for context:", type=["xml", "json", "html", "htm", "md", "txt"])
|
156 |
|
|
|
148 |
# max_length = 12000 - optimal for gpt35 turbo. 2x=24000 for gpt4. 8x=96000 for gpt4-32k.
|
149 |
max_length = st.sidebar.slider("File section length for large files", min_value=1000, max_value=128000, value=12000, step=1000)
|
150 |
|
151 |
+
colprompt, colupload = st.columns([5,3]) # adjust the ratio as needed
|
152 |
with colprompt:
|
153 |
+
user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=150)
|
154 |
with colupload:
|
155 |
uploaded_file = st.file_uploader("Add a file for context:", type=["xml", "json", "html", "htm", "md", "txt"])
|
156 |
|