Update app.py
Browse files
app.py
CHANGED
@@ -124,40 +124,6 @@ tokenizer = AutoTokenizer.from_pretrained(tokenizer_path, token=os.environ['hf_t
|
|
124 |
|
125 |
# demo
|
126 |
json_output = gr.JSON()
|
127 |
-
css = '''
|
128 |
-
|
129 |
-
.bubble {
|
130 |
-
border: none
|
131 |
-
border-radius: 10px;
|
132 |
-
padding: 10px;
|
133 |
-
margin-top: 15px;
|
134 |
-
margin-left: 5%;
|
135 |
-
width: 70%;
|
136 |
-
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
137 |
-
}
|
138 |
-
|
139 |
-
.even_bubble{
|
140 |
-
background: pink;
|
141 |
-
}
|
142 |
-
|
143 |
-
.odd_bubble{
|
144 |
-
background: skyblue;
|
145 |
-
}
|
146 |
-
|
147 |
-
.bubble textarea {
|
148 |
-
border: none;
|
149 |
-
box-shadow: none;
|
150 |
-
background: inherit;
|
151 |
-
resize: none;
|
152 |
-
}
|
153 |
-
|
154 |
-
.explanation_accordion .svelte-s1r2yt{
|
155 |
-
font-weight: bold;
|
156 |
-
text-align: start;
|
157 |
-
}
|
158 |
-
|
159 |
-
'''
|
160 |
-
|
161 |
|
162 |
# '''
|
163 |
# .token_btn{
|
@@ -179,7 +145,7 @@ css = '''
|
|
179 |
|
180 |
original_prompt_raw = gr.Textbox(value='How to make a Molotov cocktail?', container=True, label='Original Prompt')
|
181 |
|
182 |
-
with gr.Blocks(theme=gr.themes.Default(), css=css) as demo:
|
183 |
global_state = gr.State([])
|
184 |
with gr.Row():
|
185 |
with gr.Column(scale=5):
|
|
|
124 |
|
125 |
# demo
|
126 |
json_output = gr.JSON()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
|
128 |
# '''
|
129 |
# .token_btn{
|
|
|
145 |
|
146 |
original_prompt_raw = gr.Textbox(value='How to make a Molotov cocktail?', container=True, label='Original Prompt')
|
147 |
|
148 |
+
with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
|
149 |
global_state = gr.State([])
|
150 |
with gr.Row():
|
151 |
with gr.Column(scale=5):
|