Flux9665 commited on
Commit
e6e0497
β€’
1 Parent(s): 040f06f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -18
app.py CHANGED
@@ -127,21 +127,20 @@ class Measurer:
127
  return f1, f2, f3, f4
128
 
129
 
130
- if __name__ == '__main__':
131
- m = Measurer()
132
- iso_to_name = load_json_from_path("iso_to_fullname.json")
133
- text_selection = [f"{iso_to_name[iso_code]} ({iso_code})" for iso_code in iso_to_name]
134
- iface = gr.Interface(fn=m.measure,
135
- inputs=[gr.Dropdown(text_selection,
136
- type="value",
137
- value='English (eng)',
138
- label="Select the fist Language (type on your keyboard to find it quickly)"),
139
- gr.Dropdown(text_selection,
140
- type="value",
141
- value='German (deu)',
142
- label="Select the second Language (type on your keyboard to find it quickly)")],
143
- outputs=[gr.Plot(),
144
- gr.Plot(),
145
- gr.Plot(),
146
- gr.Plot()])
147
- iface.launch()
 
127
  return f1, f2, f3, f4
128
 
129
 
130
+ m = Measurer()
131
+ iso_to_name = load_json_from_path("iso_to_fullname.json")
132
+ text_selection = [f"{iso_to_name[iso_code]} ({iso_code})" for iso_code in iso_to_name]
133
+ iface = gr.Interface(fn=m.measure,
134
+ inputs=[gr.Dropdown(text_selection,
135
+ type="value",
136
+ value='English (eng)',
137
+ label="Select the fist Language (type on your keyboard to find it quickly)"),
138
+ gr.Dropdown(text_selection,
139
+ type="value",
140
+ value='German (deu)',
141
+ label="Select the second Language (type on your keyboard to find it quickly)")],
142
+ outputs=[gr.Plot(),
143
+ gr.Plot(),
144
+ gr.Plot(),
145
+ gr.Plot()])
146
+ iface.launch()