Spaces:
				
			
			
	
			
			
		Running
		
			on 
			
			Zero
	
	
	
			
			
	
	
	
	
		
		
		Running
		
			on 
			
			Zero
	added examples
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -128,6 +128,19 @@ with gr.Blocks(css='style.css') as demo: 
     | 
|
| 128 | 
         
             
                        value=50,
         
     | 
| 129 | 
         
             
                    )
         
     | 
| 130 | 
         | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 131 | 
         
             
                textbox.submit(
         
     | 
| 132 | 
         
             
                    fn=clear_and_save_textbox,
         
     | 
| 133 | 
         
             
                    inputs=textbox,
         
     | 
| 
         | 
|
| 128 | 
         
             
                        value=50,
         
     | 
| 129 | 
         
             
                    )
         
     | 
| 130 | 
         | 
| 131 | 
         
            +
                gr.Examples(
         
     | 
| 132 | 
         
            +
                    examples = [
         
     | 
| 133 | 
         
            +
                    ["Hello there! How are you doing?"],
         
     | 
| 134 | 
         
            +
                    ["Can you explain to me briefly what is Python programming language?"],
         
     | 
| 135 | 
         
            +
                    ["Explain the plot of Cinderella in a sentence."],
         
     | 
| 136 | 
         
            +
                    ["How many hours does it take a man to eat a Helicopter?"],
         
     | 
| 137 | 
         
            +
                    ["Write a 100-word article on 'Benefits of Open-Source in AI research'"]
         
     | 
| 138 | 
         
            +
                ], 
         
     | 
| 139 | 
         
            +
                    inputs = textbox,
         
     | 
| 140 | 
         
            +
                    label = "Click on any example and press the 'Submit' button",
         
     | 
| 141 | 
         
            +
                            
         
     | 
| 142 | 
         
            +
                  )
         
     | 
| 143 | 
         
            +
                    
         
     | 
| 144 | 
         
             
                textbox.submit(
         
     | 
| 145 | 
         
             
                    fn=clear_and_save_textbox,
         
     | 
| 146 | 
         
             
                    inputs=textbox,
         
     |