Adrien Banse
commited on
Commit
•
9c47a26
1
Parent(s):
d23d1fc
feat: equivalent for expert mdoe
Browse files
app.py
CHANGED
@@ -275,11 +275,41 @@ with gr.Blocks() as demo:
|
|
275 |
latex_delimiters=[{"left": "$$", "right": "$$", "display": False}]
|
276 |
)
|
277 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
submit_btn = gr.Button("Submit")
|
279 |
submit_btn.click(
|
280 |
fn=form_expert,
|
281 |
inputs=[model_active_params, model_total_params, tokens, mix_gwp, mix_adpe, mix_pe],
|
282 |
-
outputs=[energy, gwp, adpe, pe]
|
283 |
)
|
284 |
|
285 |
### METHOD QUICK EXPLANATION
|
|
|
275 |
latex_delimiters=[{"left": "$$", "right": "$$", "display": False}]
|
276 |
)
|
277 |
|
278 |
+
with gr.Row():
|
279 |
+
energy = gr.Markdown(
|
280 |
+
label="energy",
|
281 |
+
latex_delimiters=[{"left": "$$", "right": "$$", "display": False}]
|
282 |
+
)
|
283 |
+
gwp = gr.Markdown(
|
284 |
+
label="gwp",
|
285 |
+
latex_delimiters=[{"left": "$$", "right": "$$", "display": False}]
|
286 |
+
)
|
287 |
+
adpe = gr.Markdown(
|
288 |
+
label="adpe",
|
289 |
+
latex_delimiters=[{"left": "$$", "right": "$$", "display": False}]
|
290 |
+
)
|
291 |
+
pe = gr.Markdown(
|
292 |
+
label="pe",
|
293 |
+
latex_delimiters=[{"left": "$$", "right": "$$", "display": False}]
|
294 |
+
)
|
295 |
+
|
296 |
+
gr.Markdown('---')
|
297 |
+
|
298 |
+
with gr.Row():
|
299 |
+
equivalent_1 = gr.Markdown(
|
300 |
+
label="eq_energy",
|
301 |
+
latex_delimiters=[{"left": "$$", "right": "$$", "display": False}]
|
302 |
+
)
|
303 |
+
equivalent_2 = gr.Markdown(
|
304 |
+
label="eq_gwp",
|
305 |
+
latex_delimiters=[{"left": "$$", "right": "$$", "display": False}]
|
306 |
+
)
|
307 |
+
|
308 |
submit_btn = gr.Button("Submit")
|
309 |
submit_btn.click(
|
310 |
fn=form_expert,
|
311 |
inputs=[model_active_params, model_total_params, tokens, mix_gwp, mix_adpe, mix_pe],
|
312 |
+
outputs=[energy, gwp, adpe, pe, equivalent_1, equivalent_2]
|
313 |
)
|
314 |
|
315 |
### METHOD QUICK EXPLANATION
|