LouisLi commited on
Commit
9c67e5a
·
verified ·
1 Parent(s): 231ee0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -92,13 +92,17 @@ from functools import partial
92
 
93
  from huggingface_hub import hf_hub_download
94
 
95
- import transformers
96
- transformers.logging.set_verbosity_info()
97
 
98
  import logging
99
 
100
- log_level = os.getenv('LOG_LEVEL', 'DEBUG').upper()
101
- logging.basicConfig(level=getattr(logging, log_level))
 
 
 
 
 
102
 
103
 
104
  # def get_render_cameras(batch_size=1, M=120, radius=2.5, elevation=10.0, is_flexicubes=False):
@@ -2211,6 +2215,7 @@ def create_ui():
2211
 
2212
 
2213
  if __name__ == '__main__':
 
2214
  iface = create_ui()
2215
  iface.queue(api_open=False, max_size=10)
2216
  # iface.queue(concurrency_count=5, api_open=False, max_size=10)
 
92
 
93
  from huggingface_hub import hf_hub_download
94
 
95
+
 
96
 
97
  import logging
98
 
99
+ logging.basicConfig(level=logging.DEBUG)
100
+
101
+ logger = logging.getLogger(__name__)
102
+
103
+ def my_function(input_text):
104
+ logger.info(f'Received input: {input_text}')
105
+ return "Output: " + input_text
106
 
107
 
108
  # def get_render_cameras(batch_size=1, M=120, radius=2.5, elevation=10.0, is_flexicubes=False):
 
2215
 
2216
 
2217
  if __name__ == '__main__':
2218
+ logger.info("Starting Gradio app")
2219
  iface = create_ui()
2220
  iface.queue(api_open=False, max_size=10)
2221
  # iface.queue(concurrency_count=5, api_open=False, max_size=10)