Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
changes
Browse files- __pycache__/app.cpython-311.pyc +0 -0
- app.py +2 -2
__pycache__/app.cpython-311.pyc
CHANGED
|
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
|
|
|
app.py
CHANGED
|
@@ -69,7 +69,7 @@ async def auth(request: Request):
|
|
| 69 |
with gr.Blocks() as login_demo:
|
| 70 |
gr.Button("Login", link="/login")
|
| 71 |
|
| 72 |
-
app = gr.mount_gradio_app(app, login_demo, path="/")
|
| 73 |
|
| 74 |
def greet(request: gr.Request):
|
| 75 |
return f"Welcome to Gradio, {request.username}"
|
|
@@ -79,7 +79,7 @@ with gr.Blocks() as main_demo:
|
|
| 79 |
gr.Button("Logout", link="/logout")
|
| 80 |
main_demo.load(greet, None, m)
|
| 81 |
|
| 82 |
-
app = gr.mount_gradio_app(app, main_demo, path="/gradio"
|
| 83 |
|
| 84 |
|
| 85 |
if __name__ == '__main__':
|
|
|
|
| 69 |
with gr.Blocks() as login_demo:
|
| 70 |
gr.Button("Login", link="/login")
|
| 71 |
|
| 72 |
+
app = gr.mount_gradio_app(app, login_demo, path="/main")
|
| 73 |
|
| 74 |
def greet(request: gr.Request):
|
| 75 |
return f"Welcome to Gradio, {request.username}"
|
|
|
|
| 79 |
gr.Button("Logout", link="/logout")
|
| 80 |
main_demo.load(greet, None, m)
|
| 81 |
|
| 82 |
+
app = gr.mount_gradio_app(app, main_demo, path="/gradio")
|
| 83 |
|
| 84 |
|
| 85 |
if __name__ == '__main__':
|