Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,6 +17,17 @@ ds_out = ds.filter(lambda x: x["contains_outputs"])
|
|
| 17 |
|
| 18 |
TMP_DIR = './tmp/'
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
def reset_tmp_folder():
|
| 21 |
if os.path.exists(TMP_DIR):
|
| 22 |
shutil.rmtree(TMP_DIR)
|
|
@@ -72,7 +83,7 @@ with gr.Blocks() as demo:
|
|
| 72 |
|
| 73 |
file = gr.File()
|
| 74 |
response = gr.Markdown("", label="LLM score justification")
|
| 75 |
-
html = gr.HTML("",
|
| 76 |
|
| 77 |
|
| 78 |
score_options.change(
|
|
|
|
| 17 |
|
| 18 |
TMP_DIR = './tmp/'
|
| 19 |
|
| 20 |
+
css = """
|
| 21 |
+
.notebook-container {
|
| 22 |
+
max-height: 600px !important;
|
| 23 |
+
overflow-y: auto !important;
|
| 24 |
+
border: 1px solid #e1e5e9;
|
| 25 |
+
border-radius: 8px;
|
| 26 |
+
padding: 16px;
|
| 27 |
+
background-color: #ffffff;
|
| 28 |
+
}
|
| 29 |
+
"""
|
| 30 |
+
|
| 31 |
def reset_tmp_folder():
|
| 32 |
if os.path.exists(TMP_DIR):
|
| 33 |
shutil.rmtree(TMP_DIR)
|
|
|
|
| 83 |
|
| 84 |
file = gr.File()
|
| 85 |
response = gr.Markdown("", label="LLM score justification")
|
| 86 |
+
html = gr.HTML("", elem_classes=["notebook-container"])
|
| 87 |
|
| 88 |
|
| 89 |
score_options.change(
|