Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
rohankaran
commited on
Commit
•
6e0db27
1
Parent(s):
9a9d10d
Update Gradio SDK to v4.29.0
Browse filesUpgrade Gradio SDK in README and requirements.txt, and refactor app.py to match the new API usage.
- README.md +1 -1
- app.py +3 -2
- requirements.txt +0 -0
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: ⚔️
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: cc-by-nc-sa-4.0
|
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.29.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: cc-by-nc-sa-4.0
|
app.py
CHANGED
@@ -652,5 +652,6 @@ with gr.Blocks(
|
|
652 |
# random_example_btn.click(textbox_random_example, inputs=[], outputs=[textbox])
|
653 |
|
654 |
if __name__ == "__main__":
|
655 |
-
demo.queue(default_concurrency_limit=10)
|
656 |
-
|
|
|
|
652 |
# random_example_btn.click(textbox_random_example, inputs=[], outputs=[textbox])
|
653 |
|
654 |
if __name__ == "__main__":
|
655 |
+
demo.queue(default_concurrency_limit=10, api_open=False).launch(
|
656 |
+
show_api=False, allowed_paths=["./static"]
|
657 |
+
)
|
requirements.txt
CHANGED
Binary files a/requirements.txt and b/requirements.txt differ
|
|