Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,11 +97,11 @@ def display_image(photo_path):
|
|
| 97 |
|
| 98 |
def outputImg(df_name, species):
|
| 99 |
print("df_name", df_name)
|
| 100 |
-
if df_name == "
|
| 101 |
df = p13_df
|
| 102 |
-
elif df_name == "
|
| 103 |
df = p6_df
|
| 104 |
-
elif df_name == "
|
| 105 |
df = p2_df
|
| 106 |
else:
|
| 107 |
print("Invalid DataFrame selected")
|
|
@@ -116,7 +116,7 @@ def outputImg(df_name, species):
|
|
| 116 |
iface = gr.Interface(
|
| 117 |
fn=outputImg,
|
| 118 |
inputs=[
|
| 119 |
-
gr.inputs.Dropdown(label="df", choices=["
|
| 120 |
gr.inputs.Dropdown(label="species", choices=list(pd.concat([p13_df['commonName'], p6_df['commonName'], p2_df['commonName']]).unique())),
|
| 121 |
#gr.inputs.Textbox(label="DataFrame")
|
| 122 |
],
|
|
|
|
| 97 |
|
| 98 |
def outputImg(df_name, species):
|
| 99 |
print("df_name", df_name)
|
| 100 |
+
if df_name == "[13] Scandcam-Västerbotten2122":
|
| 101 |
df = p13_df
|
| 102 |
+
elif df_name == "[6] Beyond Moose":
|
| 103 |
df = p6_df
|
| 104 |
+
elif df_name == "[2] Träffa dina vilda grannar":
|
| 105 |
df = p2_df
|
| 106 |
else:
|
| 107 |
print("Invalid DataFrame selected")
|
|
|
|
| 116 |
iface = gr.Interface(
|
| 117 |
fn=outputImg,
|
| 118 |
inputs=[
|
| 119 |
+
gr.inputs.Dropdown(label="df", choices=["[13] Scandcam-Västerbotten2122", "[6] Beyond Moose", "[2] Träffa dina vilda grannar"]),
|
| 120 |
gr.inputs.Dropdown(label="species", choices=list(pd.concat([p13_df['commonName'], p6_df['commonName'], p2_df['commonName']]).unique())),
|
| 121 |
#gr.inputs.Textbox(label="DataFrame")
|
| 122 |
],
|