Spaces:
Runtime error
Runtime error
Update app.py
Browse files19 unmodified lines202122232324252641 unmodified lines68697071727374757677787980818283848586877172737475767778798081828384858687888919 unmodified lines
def classes(class_name):def 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 lines error_message = f"Error: {str(e)}" return None, None, None info = 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> ''' info_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