Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
title = "Updated Emrwa"
|
4 |
+
description = "<p style='text-align:center;'>WELCOME</p>"
|
5 |
+
latest_updates = "<h2><center>Let's start ... <a href='https://shorturl.at/cdiKQ' target='_blank'>Updated Emrwa</a></center></h2>"
|
6 |
+
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>"
|
7 |
+
description += latest_updates + duplicate_space
|
8 |
+
|
9 |
+
|
10 |
+
def greet(Write):
|
11 |
+
return "Go to https://shorturl.at/cdiKQ"
|
12 |
+
|
13 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text", title=title, description=description)
|
14 |
+
iface.launch()
|