update
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -5,7 +5,7 @@ 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{chaine}"
         
     | 
| 9 | 
         | 
| 10 | 
         
             
            with gr.Blocks() as demo:
         
     | 
| 11 | 
         
             
                gr.Markdown(
         
     | 
| 
         @@ -19,6 +19,6 @@ 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())
         
     | 
| 23 | 
         | 
| 24 | 
         
             
            demo.launch()
         
     | 
| 
         | 
|
| 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:
         
     | 
| 11 | 
         
             
                gr.Markdown(
         
     | 
| 
         | 
|
| 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()
         
     |