Spaces:
Running
Running
setup a multipage web application
Browse files- .gitignore +0 -0
- __pycache__/main_page.cpython-311.pyc +0 -0
- __pycache__/second_page.cpython-311.pyc +0 -0
- __pycache__/text_generation.cpython-311.pyc +0 -0
- app.py +9 -1
- requirements.txt +1 -0
.gitignore
ADDED
File without changes
|
__pycache__/main_page.cpython-311.pyc
ADDED
Binary file (641 Bytes). View file
|
|
__pycache__/second_page.cpython-311.pyc
ADDED
Binary file (831 Bytes). View file
|
|
__pycache__/text_generation.cpython-311.pyc
ADDED
Binary file (1.26 kB). View file
|
|
app.py
CHANGED
@@ -6,5 +6,13 @@ with gr.Blocks(fill_height=True) as demo:
|
|
6 |
gr.Markdown("This Space showcases the google/gemma-2-2b-it model, served by the nebius API. Sign in with your Hugging Face account to use this API.")
|
7 |
button = gr.LoginButton("Sign in")
|
8 |
gr.load("models/google/gemma-2-2b-it", accept_token=button, provider="nebius")
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
demo.launch()
|
|
|
6 |
gr.Markdown("This Space showcases the google/gemma-2-2b-it model, served by the nebius API. Sign in with your Hugging Face account to use this API.")
|
7 |
button = gr.LoginButton("Sign in")
|
8 |
gr.load("models/google/gemma-2-2b-it", accept_token=button, provider="nebius")
|
9 |
+
|
10 |
+
with demo.route("Interface") as incrementer_demo:
|
11 |
+
gr.Markdown("This is the second page")
|
12 |
+
gr.Textbox()
|
13 |
+
|
14 |
+
with demo.route("Test") as incrementer_demo:
|
15 |
+
gr.Markdown("This is the second page")
|
16 |
+
gr.Textbox()
|
17 |
+
|
18 |
demo.launch()
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
gradio
|