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'
|
@@ -46,7 +47,8 @@ def start_http_server():
|
|
46 |
def login():
|
47 |
auth_url = f"{AUTHORITY_URL}/authorize?client_id={CLIENT_ID}&response_type=code&redirect_uri={REDIRECT_URI}&scope={SCOPE}"
|
48 |
webbrowser.open(auth_url)
|
49 |
-
|
|
|
50 |
def gradio_interface():
|
51 |
with gr.Blocks() as demo:
|
52 |
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'
|
|
|
47 |
def login():
|
48 |
auth_url = f"{AUTHORITY_URL}/authorize?client_id={CLIENT_ID}&response_type=code&redirect_uri={REDIRECT_URI}&scope={SCOPE}"
|
49 |
webbrowser.open(auth_url)
|
50 |
+
|
51 |
+
@spaces.GPU(duration=60)
|
52 |
def gradio_interface():
|
53 |
with gr.Blocks() as demo:
|
54 |
gr.Markdown("### Welcome to the App")
|