add default values
Browse files
app.py
CHANGED
@@ -96,12 +96,16 @@ def predict(mseeds=[], waveforms="", stations=""):
|
|
96 |
|
97 |
|
98 |
inputs = [
|
99 |
-
gr.File(label="
|
100 |
gr.Textbox(label="waveform", visible=False),
|
101 |
gr.Textbox(label="stations", visible=False),
|
102 |
]
|
103 |
|
104 |
-
outputs = [
|
|
|
|
|
|
|
|
|
105 |
gr.Interface(
|
106 |
predict,
|
107 |
inputs=inputs,
|
|
|
96 |
|
97 |
|
98 |
inputs = [
|
99 |
+
gr.File(label="mseeds", file_count="multiple"),
|
100 |
gr.Textbox(label="waveform", visible=False),
|
101 |
gr.Textbox(label="stations", visible=False),
|
102 |
]
|
103 |
|
104 |
+
outputs = [
|
105 |
+
gr.Dataframe(label="picks", headers=["phase_time", "phase_score", "phase_type"]),
|
106 |
+
gr.File(label="csv"),
|
107 |
+
gr.Textbox(label="json", visible=False),
|
108 |
+
]
|
109 |
gr.Interface(
|
110 |
predict,
|
111 |
inputs=inputs,
|