fmussari commited on
Commit
a3d9e7d
1 Parent(s): 3fd8a1e

hide credentials

Browse files
Files changed (1) hide show
  1. app.py +2 -19
app.py CHANGED
@@ -1,9 +1,8 @@
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: telecom_object_detection.ipynb.
2
 
3
  # %% auto 0
4
- __all__ = ['prediction_endpoint', 'prediction_key', 'project_id', 'model_name', 'title', 'css', 'urls', 'imgs', 'img_samples',
5
- 'fig2img', 'custom_vision_detect_objects', 'flip_text', 'flip_image', 'set_example_url', 'set_example_image',
6
- 'detect_objects']
7
 
8
  # %% telecom_object_detection.ipynb 2
9
  import gradio as gr
@@ -95,22 +94,6 @@ def custom_vision_detect_objects(image_file: Path):
95
  fig.savefig(outputfile)
96
  print('Resulabsts saved in ', outputfile)
97
 
98
- # %% telecom_object_detection.ipynb 13
99
- load_dotenv()
100
- prediction_endpoint = os.getenv('PredictionEndpoint')
101
- prediction_key = os.getenv('PredictionKey')
102
- project_id = os.getenv('ProjectID')
103
- model_name = os.getenv('ModelName')
104
- print(prediction_endpoint)
105
- print(prediction_key)
106
- print(project_id)
107
- print(model_name)
108
- #print('/'*10)
109
- #print(credentials)
110
- #print(prediction_client)
111
- #print('/'*10)
112
- #print(h, w, ch)
113
-
114
  # %% telecom_object_detection.ipynb 15
115
  title = """<h1 id="title">Telecom Object Detection with Azure Custom Vision</h1>"""
116
 
 
1
  # AUTOGENERATED! DO NOT EDIT! File to edit: telecom_object_detection.ipynb.
2
 
3
  # %% auto 0
4
+ __all__ = ['title', 'css', 'urls', 'imgs', 'img_samples', 'fig2img', 'custom_vision_detect_objects', 'flip_text', 'flip_image',
5
+ 'set_example_url', 'set_example_image', 'detect_objects']
 
6
 
7
  # %% telecom_object_detection.ipynb 2
8
  import gradio as gr
 
94
  fig.savefig(outputfile)
95
  print('Resulabsts saved in ', outputfile)
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  # %% telecom_object_detection.ipynb 15
98
  title = """<h1 id="title">Telecom Object Detection with Azure Custom Vision</h1>"""
99