Spaces:
Paused
Paused
updated app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import requests
|
|
3 |
import webbrowser
|
4 |
from http.server import BaseHTTPRequestHandler, HTTPServer
|
5 |
import threading
|
|
|
6 |
|
7 |
# OAuth Configuration
|
8 |
TENANT_ID = '2b093ced-2571-463f-bc3e-b4f8bcb427ee'
|
@@ -52,7 +53,8 @@ def check_login():
|
|
52 |
def handle_login_click():
|
53 |
login()
|
54 |
return "Please complete the login process in the opened window."
|
55 |
-
|
|
|
56 |
def gradio_interface():
|
57 |
with gr.Blocks() as demo:
|
58 |
gr.Markdown("### Welcome to the App")
|
|
|
3 |
import webbrowser
|
4 |
from http.server import BaseHTTPRequestHandler, HTTPServer
|
5 |
import threading
|
6 |
+
import spaces
|
7 |
|
8 |
# OAuth Configuration
|
9 |
TENANT_ID = '2b093ced-2571-463f-bc3e-b4f8bcb427ee'
|
|
|
53 |
def handle_login_click():
|
54 |
login()
|
55 |
return "Please complete the login process in the opened window."
|
56 |
+
|
57 |
+
@spaces.GPU(duration=60)
|
58 |
def gradio_interface():
|
59 |
with gr.Blocks() as demo:
|
60 |
gr.Markdown("### Welcome to the App")
|