heatingma commited on
Commit
f8c8166
1 Parent(s): 51ba6a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -30,7 +30,7 @@ def _handle_pygm_solve(
30
  img2_path=img_2_path,
31
  kpts1_path=kpts1_path,
32
  kpts2_path=kpts2_path,
33
- output_path="src",
34
  filename="pygm_image"
35
  )
36
  solved_time = time.time() - start_time
@@ -97,23 +97,23 @@ with gr.Blocks() as pygm_page:
97
  with gr.Column(scale=2):
98
  with gr.Row():
99
  pygm_img_1 = gr.File(
100
- label="Upload .png File",
101
  file_types=[".png"],
102
  min_width=40,
103
  )
104
  pygm_img_2 = gr.File(
105
- label="Upload .png File",
106
  file_types=[".png"],
107
  min_width=40,
108
  )
109
  with gr.Row():
110
  pygm_kpts_1 = gr.File(
111
- label="Upload .mat File",
112
  file_types=[".mat"],
113
  min_width=40,
114
  )
115
  pygm_kpts_2 = gr.File(
116
- label="Upload .mat File",
117
  file_types=[".mat"],
118
  min_width=40,
119
  )
 
30
  img2_path=img_2_path,
31
  kpts1_path=kpts1_path,
32
  kpts2_path=kpts2_path,
33
+ output_path="media",
34
  filename="pygm_image"
35
  )
36
  solved_time = time.time() - start_time
 
97
  with gr.Column(scale=2):
98
  with gr.Row():
99
  pygm_img_1 = gr.File(
100
+ label="Upload .png File 1",
101
  file_types=[".png"],
102
  min_width=40,
103
  )
104
  pygm_img_2 = gr.File(
105
+ label="Upload .png File 2",
106
  file_types=[".png"],
107
  min_width=40,
108
  )
109
  with gr.Row():
110
  pygm_kpts_1 = gr.File(
111
+ label="Upload .mat File 1",
112
  file_types=[".mat"],
113
  min_width=40,
114
  )
115
  pygm_kpts_2 = gr.File(
116
+ label="Upload .mat File 2",
117
  file_types=[".mat"],
118
  min_width=40,
119
  )