Martín Santillán Cooper commited on
Commit
d57c940
1 Parent(s): 0b32e5e

add scroll to output

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from dotenv import load_dotenv
3
 
4
- from utils import get_evaluated_component, get_evaluated_component_adjective, get_result_description, to_title_case, get_prompt_from_test_case, to_snake_case
5
  load_dotenv()
6
  import json
7
  from model import generate_text
@@ -170,7 +170,8 @@ with gr.Blocks(
170
  ).then(
171
  on_submit,
172
  inputs=[criteria, context, user_message, assistant_message, state],
173
- outputs=[result_text]
 
174
  )
175
 
176
 
 
1
  import gradio as gr
2
  from dotenv import load_dotenv
3
 
4
+ from utils import get_result_description, to_title_case, get_prompt_from_test_case, to_snake_case
5
  load_dotenv()
6
  import json
7
  from model import generate_text
 
170
  ).then(
171
  on_submit,
172
  inputs=[criteria, context, user_message, assistant_message, state],
173
+ outputs=[result_text],
174
+ scroll_to_output=True
175
  )
176
 
177