Spaces:
Runtime error
Runtime error
Santiago Roman
commited on
Commit
•
6004ca8
1
Parent(s):
7ef6642
edit Image
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def cohort_predict(start_date, cohort_start, product):
|
|
43 |
fig = plot_example_from_case(hist_seq, new_seq, 25, product)
|
44 |
|
45 |
|
46 |
-
return fig
|
47 |
|
48 |
demo = gr.Interface(
|
49 |
fn=cohort_predict,
|
|
|
43 |
fig = plot_example_from_case(hist_seq, new_seq, 25, product)
|
44 |
|
45 |
|
46 |
+
return Image.frombytes('RGB', fig.canvas.get_width_height(),fig.canvas.tostring_rgb())
|
47 |
|
48 |
demo = gr.Interface(
|
49 |
fn=cohort_predict,
|