Spaces:
				
			
			
	
			
			
		Paused
		
	
	
	
			
			
	
	
	
	
		
		
		Paused
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -23,7 +23,7 @@ def translate(text, num_beams=4, num_return_sequences=4): 
     | 
|
| 23 | 
         
             
                  translations.append(translation)
         
     | 
| 24 | 
         | 
| 25 | 
         
             
              # return  "\n".join(["• " + translation for translation in translations])
         
     | 
| 26 | 
         
            -
              return translations
         
     | 
| 27 | 
         | 
| 28 | 
         
             
            output = gr.CheckboxGroup()
         
     | 
| 29 | 
         
             
            # with gr.Accordion("Advanced Options"):
         
     | 
| 
         @@ -51,7 +51,7 @@ examples = [ 
     | 
|
| 51 | 
         
             
            gr.Interface(
         
     | 
| 52 | 
         
             
              fn=translate,
         
     | 
| 53 | 
         
             
              inputs=["text", num_beams, num_return_sequences],
         
     | 
| 54 | 
         
            -
              outputs=output,
         
     | 
| 55 | 
         
             
              title=title,
         
     | 
| 56 | 
         
             
              examples=examples,
         
     | 
| 57 | 
         
             
              article=article).launch()
         
     | 
| 
         | 
|
| 23 | 
         
             
                  translations.append(translation)
         
     | 
| 24 | 
         | 
| 25 | 
         
             
              # return  "\n".join(["• " + translation for translation in translations])
         
     | 
| 26 | 
         
            +
              return text, translations
         
     | 
| 27 | 
         | 
| 28 | 
         
             
            output = gr.CheckboxGroup()
         
     | 
| 29 | 
         
             
            # with gr.Accordion("Advanced Options"):
         
     | 
| 
         | 
|
| 51 | 
         
             
            gr.Interface(
         
     | 
| 52 | 
         
             
              fn=translate,
         
     | 
| 53 | 
         
             
              inputs=["text", num_beams, num_return_sequences],
         
     | 
| 54 | 
         
            +
              outputs=["text", output],
         
     | 
| 55 | 
         
             
              title=title,
         
     | 
| 56 | 
         
             
              examples=examples,
         
     | 
| 57 | 
         
             
              article=article).launch()
         
     |