Spaces:
Runtime error
Runtime error
Update app.py
Browse files19 unmodified lines2021222324252641 unmodified lines686970717273747576777879808182838485868788899019 unmodified linesdef classes(class_name):if class_name == "Ajloun Castle":link = "https://ar.tripadvisor.com/Attraction_Review-g293988-d1549575-Reviews-Ajloun_Castle-Jerash_Jerash_Governorate.html"elif class_name == "Jerash":41 unmodified lineserror_message = f"Error: {str(e)}"return None, None, Noneinfo =f'''<!DOCTYPE html><html><head><title>Links</title></head><body><h1>Useful Links</h1><ul><li><a href="{links[0]}" target="_blank">{links[0]}</a></li></ul></body></html>'''image_input = gr.Image(type='filepath', label="Input Image")model_dropdown = gr.Dropdown(["ResNet", "EfficientNet", "VGGNet", "InceptionV3"], label="Select Model")19 unmodified lines2021222324252641 unmodified lines6869707172737475767778798081828384858687888919 unmodified linesdef links_info(class_name):if class_name == "Ajloun Castle":link = "https://ar.tripadvisor.com/Attraction_Review-g293988-d1549575-Reviews-Ajloun_Castle-Jerash_Jerash_Governorate.html"elif class_name == "Jerash":41 unmodified lineserror_message = f"Error: {str(e)}"return None, None, Noneinfo_html = f'''<!DOCTYPE html><html><head><title>Tripadvisor website</title></head><body><h1></h1><ul><li><a href="{links[0]}" target="_blank">{links[0]}</a></li></ul></body></html>'''image_input = gr.Image(type='filepath', label="Input Image")model_dropdown = gr.Dropdown(["ResNet", "EfficientNet", "VGGNet", "InceptionV3"], label="Select Model")
app.py+17-18