Duc Haba
commited on
Commit
•
2bd7a16
1
Parent(s):
90ca5cd
fix it
Browse files
app.py
CHANGED
@@ -543,6 +543,7 @@ foxy.print_info_self()
|
|
543 |
|
544 |
import hashlib
|
545 |
import fastai
|
|
|
546 |
import gradio
|
547 |
|
548 |
def generate_hash(text, max_length=8):
|
@@ -578,7 +579,7 @@ foxy.print_learner_meta_info(foxy.learner)
|
|
578 |
# %%write -a app.py
|
579 |
# prompt: combine the above code cells in the "Predict using download images" into a function with documentation.
|
580 |
|
581 |
-
@add_method(
|
582 |
def predict_butterfly(self, img_pil, return_top=3):
|
583 |
|
584 |
"""
|
@@ -630,7 +631,7 @@ def predict_butterfly(self, img_pil, return_top=3):
|
|
630 |
|
631 |
import matplotlib
|
632 |
|
633 |
-
@add_method(
|
634 |
def draw_donut_chart(self, names, values, img_center=None,
|
635 |
title="Donut Chart", figsize=(12, 6), is_show_plot=False):
|
636 |
"""
|
|
|
543 |
|
544 |
import hashlib
|
545 |
import fastai
|
546 |
+
import fastai.learner
|
547 |
import gradio
|
548 |
|
549 |
def generate_hash(text, max_length=8):
|
|
|
579 |
# %%write -a app.py
|
580 |
# prompt: combine the above code cells in the "Predict using download images" into a function with documentation.
|
581 |
|
582 |
+
@add_method(Pluto_Happy)
|
583 |
def predict_butterfly(self, img_pil, return_top=3):
|
584 |
|
585 |
"""
|
|
|
631 |
|
632 |
import matplotlib
|
633 |
|
634 |
+
@add_method(Pluto_Happy)
|
635 |
def draw_donut_chart(self, names, values, img_center=None,
|
636 |
title="Donut Chart", figsize=(12, 6), is_show_plot=False):
|
637 |
"""
|