Duc Haba
commited on
Commit
•
1cdedda
1
Parent(s):
8915791
change image to numpy not pil
Browse files
app.py
CHANGED
@@ -2534,7 +2534,7 @@ be a valuable resource for researchers studying butterfly populations, their dis
|
|
2534 |
---
|
2535 |
"""
|
2536 |
# xinputs = ["image"]
|
2537 |
-
xinputs = [gradio.Image(type="
|
2538 |
xoutputs = ["plot"]
|
2539 |
# %%write -a app.py
|
2540 |
# prompt: write a python code using gradio for simple hello world app
|
@@ -2578,5 +2578,5 @@ app = gradio.Interface(fn=say_butterfly_name,
|
|
2578 |
inline = True
|
2579 |
width = "80%"
|
2580 |
height = "80%" # 1200
|
2581 |
-
app.launch(
|
2582 |
# app.launch(debug=True)
|
|
|
2534 |
---
|
2535 |
"""
|
2536 |
# xinputs = ["image"]
|
2537 |
+
xinputs = [gradio.Image(type="numpy")]
|
2538 |
xoutputs = ["plot"]
|
2539 |
# %%write -a app.py
|
2540 |
# prompt: write a python code using gradio for simple hello world app
|
|
|
2578 |
inline = True
|
2579 |
width = "80%"
|
2580 |
height = "80%" # 1200
|
2581 |
+
app.launch()
|
2582 |
# app.launch(debug=True)
|