Spaces:
Runtime error
Runtime error
updt
Browse files
app.py
CHANGED
|
@@ -114,7 +114,7 @@ with block:
|
|
| 114 |
with gr.Row():
|
| 115 |
data_run = gr.Button("Refresh")
|
| 116 |
data_run.click(
|
| 117 |
-
get_submissions, inputs=gr.Variable("science"), outputs=science_data
|
| 118 |
)
|
| 119 |
with gr.TabItem("Food π"):
|
| 120 |
with gr.Row():
|
|
@@ -124,7 +124,7 @@ with block:
|
|
| 124 |
with gr.Row():
|
| 125 |
data_run = gr.Button("Refresh")
|
| 126 |
data_run.click(
|
| 127 |
-
get_submissions, inputs=gr.Variable("food"), outputs=food_data
|
| 128 |
)
|
| 129 |
with gr.TabItem("Landscape π"):
|
| 130 |
with gr.Row():
|
|
@@ -135,7 +135,7 @@ with block:
|
|
| 135 |
data_run = gr.Button("Refresh")
|
| 136 |
data_run.click(
|
| 137 |
get_submissions,
|
| 138 |
-
inputs=gr.Variable("landscape"),
|
| 139 |
outputs=landscape_data,
|
| 140 |
)
|
| 141 |
with gr.TabItem("Wilcard π₯"):
|
|
@@ -147,7 +147,7 @@ with block:
|
|
| 147 |
data_run = gr.Button("Refresh")
|
| 148 |
data_run.click(
|
| 149 |
get_submissions,
|
| 150 |
-
inputs=gr.Variable("wildcard"),
|
| 151 |
outputs=wildcard_data,
|
| 152 |
)
|
| 153 |
|
|
@@ -156,11 +156,11 @@ with block:
|
|
| 156 |
|
| 157 |
#button_in.click(make_clickable_demo, prompt_in, your_model_demo)
|
| 158 |
|
| 159 |
-
block.load(get_submissions, inputs=gr.Variable("animal"), outputs=animal_data)
|
| 160 |
-
block.load(get_submissions, inputs=gr.Variable("science"), outputs=science_data)
|
| 161 |
-
block.load(get_submissions, inputs=gr.Variable("food"), outputs=food_data)
|
| 162 |
-
block.load(get_submissions, inputs=gr.Variable("landscape"), outputs=landscape_data)
|
| 163 |
-
block.load(get_submissions, inputs=gr.Variable("wildcard"), outputs=wildcard_data)
|
| 164 |
|
| 165 |
|
| 166 |
block.launch()
|
|
|
|
| 114 |
with gr.Row():
|
| 115 |
data_run = gr.Button("Refresh")
|
| 116 |
data_run.click(
|
| 117 |
+
get_submissions, inputs=[gr.Variable("science"), prompt_in], outputs=science_data
|
| 118 |
)
|
| 119 |
with gr.TabItem("Food π"):
|
| 120 |
with gr.Row():
|
|
|
|
| 124 |
with gr.Row():
|
| 125 |
data_run = gr.Button("Refresh")
|
| 126 |
data_run.click(
|
| 127 |
+
get_submissions, inputs=[gr.Variable("food"), prompt_in], outputs=food_data
|
| 128 |
)
|
| 129 |
with gr.TabItem("Landscape π"):
|
| 130 |
with gr.Row():
|
|
|
|
| 135 |
data_run = gr.Button("Refresh")
|
| 136 |
data_run.click(
|
| 137 |
get_submissions,
|
| 138 |
+
inputs=[gr.Variable("landscape"),prompt_in],
|
| 139 |
outputs=landscape_data,
|
| 140 |
)
|
| 141 |
with gr.TabItem("Wilcard π₯"):
|
|
|
|
| 147 |
data_run = gr.Button("Refresh")
|
| 148 |
data_run.click(
|
| 149 |
get_submissions,
|
| 150 |
+
inputs=[gr.Variable("wildcard"),prompt_in],
|
| 151 |
outputs=wildcard_data,
|
| 152 |
)
|
| 153 |
|
|
|
|
| 156 |
|
| 157 |
#button_in.click(make_clickable_demo, prompt_in, your_model_demo)
|
| 158 |
|
| 159 |
+
block.load(get_submissions, inputs=[gr.Variable("animal"), prompt_in], outputs=animal_data)
|
| 160 |
+
block.load(get_submissions, inputs=[gr.Variable("science"), prompt_in], outputs=science_data)
|
| 161 |
+
block.load(get_submissions, inputs=[gr.Variable("food"), prompt_in], outputs=food_data)
|
| 162 |
+
block.load(get_submissions, inputs=[gr.Variable("landscape"), prompt_in], outputs=landscape_data)
|
| 163 |
+
block.load(get_submissions, inputs=[gr.Variable("wildcard"), prompt_in], outputs=wildcard_data)
|
| 164 |
|
| 165 |
|
| 166 |
block.launch()
|