Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -46,8 +46,8 @@ def get_bot_response(file, prompt): | |
| 46 | 
             
                    # Prepare input for the model
         | 
| 47 | 
             
                    input_text = f"{prompt}\n\nFile Content:\n{file_content}"
         | 
| 48 |  | 
| 49 | 
            -
                    # Call Hugging Face API for text  | 
| 50 | 
            -
                    response = client.text_generation( | 
| 51 |  | 
| 52 | 
             
                    return response
         | 
| 53 | 
             
                except Exception as e:
         | 
|  | |
| 46 | 
             
                    # Prepare input for the model
         | 
| 47 | 
             
                    input_text = f"{prompt}\n\nFile Content:\n{file_content}"
         | 
| 48 |  | 
| 49 | 
            +
                    # Call Hugging Face API for text generation
         | 
| 50 | 
            +
                    response = client.text_generation(prompt=input_text, max_new_tokens=500)
         | 
| 51 |  | 
| 52 | 
             
                    return response
         | 
| 53 | 
             
                except Exception as e:
         | 
