Spaces:
Running
on
Zero
Running
on
Zero
Martín Santillán Cooper
commited on
Commit
•
d57c940
1
Parent(s):
0b32e5e
add scroll to output
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from dotenv import load_dotenv
|
3 |
|
4 |
-
from utils import
|
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 |
|