Spaces:
Sleeping
Sleeping
bigbossmonster
commited on
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def keep_colab_alive():
|
4 |
+
# Ping Colab's keep-alive endpoint
|
5 |
+
return "Click the link below to open Colab and keep it running!"
|
6 |
+
|
7 |
+
with gr.Blocks() as demo:
|
8 |
+
gr.Markdown("### Run Colab via Hugging Face Space")
|
9 |
+
gr.HTML(
|
10 |
+
'<a href="https://colab.research.google.com/" target="_blank">Open Colab</a>'
|
11 |
+
)
|
12 |
+
|
13 |
+
demo.launch()
|