Spaces:
Runtime error
Runtime error
Alex Stoken
commited on
Commit
·
038883f
1
Parent(s):
ff0b117
remove from if name constraint
Browse files
app.py
CHANGED
@@ -245,12 +245,11 @@ def format_cldp_and_time(api_name, cldp, times=None):
|
|
245 |
return text
|
246 |
|
247 |
|
248 |
-
|
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 |
-
|
252 |
-
|
253 |
}"""
|
254 |
-
|
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 |
|