qlemesle commited on
Commit
90645d8
·
1 Parent(s): 821ad4a
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
  def show_available_llms():
5
  chaine = ""
6
  for k in model_dict.keys():
7
- chaine+=k + "\n"
8
  return f"Available models with ParaPLUIE: \n\n{chaine}"
9
 
10
  with gr.Blocks() as demo:
@@ -19,6 +19,10 @@ with gr.Blocks() as demo:
19
  ParaPLUIE use the perplexity of an LLM to compute a confidence score.
20
  It has shown the highest correlation with human judgement on paraphrase classification meanwhile reamin the computional cost low as it roughtly equal to one token generation cost.
21
  """)
22
- out = gr.Textbox(show_available_llms(), show_label=False)
 
 
 
 
23
 
24
  demo.launch()
 
4
  def show_available_llms():
5
  chaine = ""
6
  for k in model_dict.keys():
7
+ chaine+="\t"+ k + "\n"
8
  return f"Available models with ParaPLUIE: \n\n{chaine}"
9
 
10
  with gr.Blocks() as demo:
 
19
  ParaPLUIE use the perplexity of an LLM to compute a confidence score.
20
  It has shown the highest correlation with human judgement on paraphrase classification meanwhile reamin the computional cost low as it roughtly equal to one token generation cost.
21
  """)
22
+ text_box = gr.Textbox(show_available_llms(), show_label=False)
23
+
24
+ with gr.Row():
25
+ gr.Image("lion.jpg", scale=2)
26
+ gr.Image("tiger.jpg", scale=1)
27
 
28
  demo.launch()