dwb2023 commited on
Commit
ec81974
1 Parent(s): d1d6d52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,6 +2,7 @@ import os
2
  import logging
3
  import sys
4
 
 
5
  def get_logging_level(default_level=logging.INFO):
6
  log_level_str = os.getenv('VISION_AGENT_LOG_LEVEL', '').upper()
7
  if log_level_str == 'DEBUG':
@@ -32,7 +33,7 @@ print(f"Logging level set to: {logging.getLevelName(logging_level)}")
32
  from huggingface_hub import login
33
  import time
34
  import gradio as gr
35
- from typing import *
36
  from pillow_heif import register_heif_opener
37
  register_heif_opener()
38
  import vision_agent as va
 
2
  import logging
3
  import sys
4
 
5
+ # Function to get logging level from environment variable
6
  def get_logging_level(default_level=logging.INFO):
7
  log_level_str = os.getenv('VISION_AGENT_LOG_LEVEL', '').upper()
8
  if log_level_str == 'DEBUG':
 
33
  from huggingface_hub import login
34
  import time
35
  import gradio as gr
36
+ from typing import * # Ensure that the typing module is imported
37
  from pillow_heif import register_heif_opener
38
  register_heif_opener()
39
  import vision_agent as va