srimanth-d commited on
Commit
0d5f352
·
verified ·
1 Parent(s): 98ca365

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,15 +2,15 @@ import re
2
  import streamlit as st # Importing required libraries
3
  from transformers import AutoModel, AutoTokenizer
4
  import io
5
- import logging
6
  from PIL import Image
7
 
8
  # Configure logging for error handling
9
- logging.basicConfig(level=logging.INFO, format='%(asctime)s %(message)s')
10
 
11
  # Helper function for logging and displaying errors
12
  def handle_error(error_message):
13
- logging.error(error_message)
14
  st.error(f"An error occurred: {error_message}")
15
 
16
  # Cache the model and tokenizer to avoid reloading on every run
 
2
  import streamlit as st # Importing required libraries
3
  from transformers import AutoModel, AutoTokenizer
4
  import io
5
+ #import logging
6
  from PIL import Image
7
 
8
  # Configure logging for error handling
9
+ #logging.basicConfig(level=logging.INFO, format='%(asctime)s %(message)s')
10
 
11
  # Helper function for logging and displaying errors
12
  def handle_error(error_message):
13
+ #logging.error(error_message)
14
  st.error(f"An error occurred: {error_message}")
15
 
16
  # Cache the model and tokenizer to avoid reloading on every run