Spaces:
Runtime error
Runtime error
Update app.py
Browse files65 unmodified lines666768697071727374757611 unmodified lines8889909192939465 unmodified linesresult_str = f" {model_name} : {class_name} {probability}% "history.append(result_str)links = links_info(class_name)return class_name ,model_name , prediction , linksexcept Exception as e:error_message = f"Error: {str(e)}"return None, None, None,None"""info_html = f'''<!DOCTYPE html>11 unmodified lines"""image_input = gr.Image(type='filepath', label="Input Image")model_dropdown = gr.Dropdown(["ResNet", "EfficientNet", "VGGNet", "InceptionV3"], label="Select Model")info_html=gr.HTML(label="Tripadvisor website")result_textbox = gr.Textbox("Results", label="history Results")iface = gr.Interface(65 unmodified lines666768697071727374757611 unmodified lines8889909192939465 unmodified linesresult_str = f" {model_name} : {class_name} {probability}% "history.append(result_str)links = links_info(class_name)return class_name , prediction , history[-3:-1]except Exception as e:error_message = f"Error: {str(e)}"return None, None, None"""info_html = f'''<!DOCTYPE html>11 unmodified lines"""image_input = gr.Image(type='filepath', label="Input Image")model_dropdown = gr.Dropdown(["ResNet", "EfficientNet", "VGGNet", "InceptionV3"], label="Select Model")#info_html=gr.HTML(label="Tripadvisor website")result_textbox = gr.Textbox("Results", label="history Results")iface = gr.Interface(
app.py+3-3