Alex Stoken commited on
Commit
038883f
·
1 Parent(s): ff0b117

remove from if name constraint

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -245,12 +245,11 @@ def format_cldp_and_time(api_name, cldp, times=None):
245
  return text
246
 
247
 
248
- if __name__ == '__main__':
249
- inputs = [gr.inputs.File(label='Site File with Lat/Lon and GMT Time'), gr.inputs.CheckboxGroup(label='Weather Services',
250
  choices=['OpenWeather', 'MET (Norwegian)', 'WeatherAPI'], default=['OpenWeather', 'MET (Norwegian)'])]
251
- outputs = gr.outputs.Textbox(label ='Cloud % for hour before, hour of, hour after')
252
- css = """* {font-family: "Lucida Console", "Courier New", monospace !important;/* <-- fonts */
253
  }"""
254
- gr.Interface(fn=file_to_cloud_listing, inputs=inputs, css=css, outputs=outputs,
255
  allow_screenshot=False).launch(auth=("es", 'rs'), share=True)
256
 
 
245
  return text
246
 
247
 
248
+ inputs = [gr.inputs.File(label='Site File with Lat/Lon and GMT Time'), gr.inputs.CheckboxGroup(label='Weather Services',
 
249
  choices=['OpenWeather', 'MET (Norwegian)', 'WeatherAPI'], default=['OpenWeather', 'MET (Norwegian)'])]
250
+ outputs = gr.outputs.Textbox(label ='Cloud % for hour before, hour of, hour after')
251
+ css = """* {font-family: "Lucida Console", "Courier New", monospace !important;/* <-- fonts */
252
  }"""
253
+ gr.Interface(fn=file_to_cloud_listing, inputs=inputs, css=css, outputs=outputs,
254
  allow_screenshot=False).launch(auth=("es", 'rs'), share=True)
255