upgrade gradio to 3
Browse files- README.md +1 -1
- app.py +3 -2
- requirements.txt +1 -1
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: ⚡
|
|
4 |
colorFrom: blue
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
4 |
colorFrom: blue
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.0b8
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
app.py
CHANGED
@@ -114,5 +114,6 @@ iface = gr.Interface(fn=process_image,
|
|
114 |
title=title,
|
115 |
description=description,
|
116 |
examples=examples,
|
117 |
-
allow_flagging="never"
|
118 |
-
|
|
|
|
114 |
title=title,
|
115 |
description=description,
|
116 |
examples=examples,
|
117 |
+
allow_flagging="never",
|
118 |
+
cache_examples=True)
|
119 |
+
iface.launch(debug=True, enable_queue=False)
|
requirements.txt
CHANGED
@@ -2,6 +2,6 @@ torch
|
|
2 |
git+https://github.com/nielsrogge/transformers.git@add_dpt_redesign#egg=transformers
|
3 |
numpy
|
4 |
Pillow
|
5 |
-
gradio
|
6 |
jinja2
|
7 |
open3d
|
|
|
2 |
git+https://github.com/nielsrogge/transformers.git@add_dpt_redesign#egg=transformers
|
3 |
numpy
|
4 |
Pillow
|
5 |
+
gradio==3.0b8
|
6 |
jinja2
|
7 |
open3d
|