Skip for empty query
This commit is contained in:
		
							parent
							
								
									9d47d03d18
								
							
						
					
					
						commit
						ddfb95a32e
					
				|  | @ -43,6 +43,8 @@ def main(): | ||||||
|         query = input("\nEnter a query: ") |         query = input("\nEnter a query: ") | ||||||
|         if query == "exit": |         if query == "exit": | ||||||
|             break |             break | ||||||
|  |         if query.strip() == "": | ||||||
|  |             continue | ||||||
| 
 | 
 | ||||||
|         # Get the answer from the chain |         # Get the answer from the chain | ||||||
|         res = qa(query) |         res = qa(query) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue