Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -126,8 +126,8 @@ user_inputs = [
|
|
126 |
|
127 |
bot_inputs = [
|
128 |
upload_button_component,
|
129 |
-
model_choice_component,
|
130 |
-
system_instruction_component, #
|
131 |
chatbot_component
|
132 |
]
|
133 |
|
@@ -136,13 +136,14 @@ with gr.Blocks() as demo:
|
|
136 |
gr.HTML(TITLE)
|
137 |
gr.HTML(SUBTITLE)
|
138 |
with gr.Column():
|
|
|
|
|
139 |
chatbot_component.render()
|
140 |
with gr.Row():
|
141 |
text_prompt_component.render()
|
142 |
upload_button_component.render()
|
143 |
run_button_component.render()
|
144 |
-
|
145 |
-
system_instruction_component.render() # Mostrar el campo de la instrucci贸n del sistema
|
146 |
|
147 |
run_button_component.click(
|
148 |
fn=user,
|
|
|
126 |
|
127 |
bot_inputs = [
|
128 |
upload_button_component,
|
129 |
+
model_choice_component, # El campo de modelo est谩 ahora arriba
|
130 |
+
system_instruction_component, # Instrucci贸n del sistema sigue siendo separada
|
131 |
chatbot_component
|
132 |
]
|
133 |
|
|
|
136 |
gr.HTML(TITLE)
|
137 |
gr.HTML(SUBTITLE)
|
138 |
with gr.Column():
|
139 |
+
# Campo de selecci贸n de modelo arriba
|
140 |
+
model_choice_component.render()
|
141 |
chatbot_component.render()
|
142 |
with gr.Row():
|
143 |
text_prompt_component.render()
|
144 |
upload_button_component.render()
|
145 |
run_button_component.render()
|
146 |
+
system_instruction_component.render() # Instrucci贸n del sistema se coloca debajo del chat
|
|
|
147 |
|
148 |
run_button_component.click(
|
149 |
fn=user,
|