mirror of
				https://github.com/deepset-ai/haystack.git
				synced 2025-10-31 09:49:48 +00:00 
			
		
		
		
	Fix debug message for file-upload in UI (#1018)
This commit is contained in:
		
							parent
							
								
									5b0b3e4616
								
							
						
					
					
						commit
						ca63f9fee2
					
				| @ -52,10 +52,10 @@ data_file = st.sidebar.file_uploader("", type=["pdf", "txt", "docx"]) | |||||||
| # Upload file | # Upload file | ||||||
| if data_file: | if data_file: | ||||||
|     raw_json = upload_doc(data_file) |     raw_json = upload_doc(data_file) | ||||||
|     st.write(raw_json) |     st.sidebar.write(raw_json) | ||||||
|     if debug: |     if debug: | ||||||
|         st.subheader("REST API JSON response") |         st.subheader("REST API JSON response") | ||||||
|         st.write(raw_json) |         st.sidebar.write(raw_json) | ||||||
| 
 | 
 | ||||||
| # load csv into pandas dataframe | # load csv into pandas dataframe | ||||||
| if eval_mode: | if eval_mode: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Bhadresh Savani
						Bhadresh Savani