bigbossmonster commited on
Commit
acc1e88
·
verified ·
1 Parent(s): ca76438

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
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()