Spaces:
Runtime error
Runtime error
Update app.py
Browse files45 unmodified lines464748495051525354555657585 unmodified lines64656667686945 unmodified lineslabel = gr.Label(num_top_classes=5, label="AI辨識結果")some_text="我能辨識金門藍孔雀、歐亞水獺、戴勝鳥。找張金門藍孔雀、歐亞水獺、戴勝鳥照片來考我吧!"# sample_images = []# for i in range(5):# thedir = base_dir + image_folders[i]# for file in os.listdir(thedir):# if file == ".git" or file == ".ipynb_checkpoints":# continue# sample_images.append(image_folders[i] + '/' + file)iface = gr.Interface(fn=classify_image,inputs=image,5 unmodified lines# def greet(name):# model = load_model('my_cnn_model.h5') # Loading the Tensorflow Saved Model (PB)# return "Hello " + name + "!!" + model.summary()45 unmodified lines464748495051525354555657585 unmodified lines6465666768697045 unmodified lineslabel = gr.Label(num_top_classes=5, label="AI辨識結果")some_text="我能辨識金門藍孔雀、歐亞水獺、戴勝鳥。找張金門藍孔雀、歐亞水獺、戴勝鳥照片來考我吧!"sample_images = []for i in range(5):thedir = base_dir + image_folders[i]for file in os.listdir(thedir):if file == ".git" or file == ".ipynb_checkpoints":continuesample_images.append(image_folders[i] + '/' + file)iface = gr.Interface(fn=classify_image,inputs=image,5 unmodified lines# def greet(name):# model = load_model('my_cnn_model.h5') # Loading the Tensorflow Saved Model (PB)# return "Hello " + name + "!!" + model.summary()
app.py+8-7