Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Commit 
							
							·
						
						16d332d
	
1
								Parent(s):
							
							741e3eb
								
Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -28,4 +28,4 @@ def search(query,top_k=100): | |
| 28 | 
             
                for idx, hit in enumerate(hits[0:5]):
         | 
| 29 | 
             
                    ans.append(corpus[hit['corpus_id']])
         | 
| 30 | 
             
                return ans[0],ans[1],ans[2],ans[3],ans[4]
         | 
| 31 | 
            -
            iface = gr.Interface(fn=search, inputs=["text"], outputs=["textbox","textbox","textbox","textbox","textbox"]).launch(share=True)
         | 
|  | |
| 28 | 
             
                for idx, hit in enumerate(hits[0:5]):
         | 
| 29 | 
             
                    ans.append(corpus[hit['corpus_id']])
         | 
| 30 | 
             
                return ans[0],ans[1],ans[2],ans[3],ans[4]
         | 
| 31 | 
            +
            iface = gr.Interface(fn=search, inputs=["text"], outputs=["textbox","textbox","textbox","textbox","textbox"],examples=["how big is London?", "Where is Rome?","brown dog"]).launch(share=True)
         |