lvwerra HF staff commited on
Commit
6fef5b1
·
verified ·
1 Parent(s): a73b1a6

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +11 -10
utils.py CHANGED
@@ -72,16 +72,7 @@ def parse_exec_result_nb(execution):
72
 
73
 
74
  system_template = """\
75
- <style>
76
- details > summary .arrow {
77
- display: inline-block;
78
- transition: transform 0.2s;
79
- }
80
- details[open] > summary .arrow {
81
- transform: rotate(90deg);
82
- }
83
- </style>
84
-
85
  <details>
86
  <summary style="display: flex; align-items: center;">
87
  <div class="alert alert-block alert-info" style="margin: 0; width: 100%;">
@@ -92,6 +83,16 @@ details[open] > summary .arrow {
92
  {}
93
  </div>
94
  </details>
 
 
 
 
 
 
 
 
 
 
95
  """
96
 
97
  user_template = """<div class="alert alert-block alert-success">
 
72
 
73
 
74
  system_template = """\
75
+ system_template = '''
 
 
 
 
 
 
 
 
 
76
  <details>
77
  <summary style="display: flex; align-items: center;">
78
  <div class="alert alert-block alert-info" style="margin: 0; width: 100%;">
 
83
  {}
84
  </div>
85
  </details>
86
+
87
+ <style>
88
+ details > summary .arrow {{
89
+ display: inline-block;
90
+ transition: transform 0.2s;
91
+ }}
92
+ details[open] > summary .arrow {{
93
+ transform: rotate(90deg);
94
+ }}
95
+ </style>
96
  """
97
 
98
  user_template = """<div class="alert alert-block alert-success">