Spaces:
Running
Running
Commit
·
e068557
1
Parent(s):
d2a6eaf
Update app.py
Browse files
app.py
CHANGED
@@ -271,11 +271,10 @@ def dist(output_file, input_checks):
|
|
271 |
|
272 |
def peaks(output_file, input_checks):
|
273 |
plot = pickle.load(open('showcase/peaks_covid.p', 'rb'))
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
|
280 |
def peaks2(output_file, input_checks):
|
281 |
peaks_anger = {"9/2/2020": "up", "18/2/2020": "down", "8/3/2020": "up", "20/3/2020": "up", "31/5/2020": "up", "6/6/2020": "up", "19/6/2020": "up", "19/7/2020": "up"}
|
|
|
271 |
|
272 |
def peaks(output_file, input_checks):
|
273 |
plot = pickle.load(open('showcase/peaks_covid.p', 'rb'))
|
274 |
+
if "topics" in input_checks or (output_file.name).startswith('/tmp/example_predictions'):
|
275 |
+
return gr.Plot.update(value=plot, visible=True), gr.update(visible=True) # next_button_topics becomes available
|
276 |
+
else:
|
277 |
+
return gr.Plot.update(value=plot, visible=True), gr.update(visible=False) # no next_button becomes available
|
|
|
278 |
|
279 |
def peaks2(output_file, input_checks):
|
280 |
peaks_anger = {"9/2/2020": "up", "18/2/2020": "down", "8/3/2020": "up", "20/3/2020": "up", "31/5/2020": "up", "6/6/2020": "up", "19/6/2020": "up", "19/7/2020": "up"}
|