Ai-Pro's picture
Create app.py
307f77a
import gradio as gr
title = "Visual Question Answering"
description = "<p style='text-align:center;'>WELCOME</p>"
latest_updates = "<h2><center>Let's start ... <a href='https://shorturl.at/cdiKQ' target='_blank'>Visual Question Answering</a></center></h2>"
duplicate_space = "<p><center>For faster inference without waiting in queue, you may duplicate the space. Ensure that the visibility is set to Public when duplicating. <a href='https://shorturl.at/cdiKQ'><img src='https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14' alt='Duplicate Space'></a></center></p>"
description += latest_updates + duplicate_space
def greet(Write):
return "Go to https://shorturl.at/cdiKQ"
iface = gr.Interface(fn=greet, inputs="text", outputs="text", title=title, description=description)
iface.launch()