umgefahren
commited on
Commit
·
c0bc340
1
Parent(s):
a0cf668
Make non interactive
Browse files
main.py
CHANGED
@@ -102,7 +102,7 @@ def greet(image_path: str, progress=gr.Progress()):
|
|
102 |
geojson_data = gpd.read_file(final_output_path)
|
103 |
|
104 |
# Set the interactive backend to Qt5Agg
|
105 |
-
plt.switch_backend('Qt5Agg') # You have to install PyQt5
|
106 |
|
107 |
# Enable interactive mode
|
108 |
plt.ion()
|
@@ -147,7 +147,7 @@ def greet(image_path: str, progress=gr.Progress()):
|
|
147 |
break
|
148 |
|
149 |
# Connect the click event to the handler function
|
150 |
-
cid = fig.canvas.mpl_connect('button_press_event', on_click)
|
151 |
|
152 |
figure = plt.figure()
|
153 |
|
|
|
102 |
geojson_data = gpd.read_file(final_output_path)
|
103 |
|
104 |
# Set the interactive backend to Qt5Agg
|
105 |
+
# plt.switch_backend('Qt5Agg') # You have to install PyQt5
|
106 |
|
107 |
# Enable interactive mode
|
108 |
plt.ion()
|
|
|
147 |
break
|
148 |
|
149 |
# Connect the click event to the handler function
|
150 |
+
# cid = fig.canvas.mpl_connect('button_press_event', on_click)
|
151 |
|
152 |
figure = plt.figure()
|
153 |
|