Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -204,31 +204,31 @@ def gradio_worker(
|
|
204 |
with gr.Column(scale=1):
|
205 |
with gr.Tab('Image') as img_tab:
|
206 |
img_path = gr.Image(label='Image Input', type='filepath')
|
207 |
-
gr.Examples(
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
)
|
214 |
with gr.Tab('Video') as video_tab:
|
215 |
video_path = gr.Video(label='Video Input')
|
216 |
-
gr.Examples(
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
)
|
223 |
with gr.Tab('Audio') as audio_tab:
|
224 |
audio_path = gr.Audio(label='Audio Input', type='filepath', sources=['upload'])
|
225 |
-
gr.Examples(
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
)
|
232 |
with gr.Tab('Point Cloud') as point_tab:
|
233 |
gr.Markdown('Coming soon🤗')
|
234 |
with gr.Tab('IMU') as imu_tab:
|
@@ -301,7 +301,7 @@ class DemoConfig:
|
|
301 |
|
302 |
if __name__ == "__main__":
|
303 |
args = DemoConfig()
|
304 |
-
|
305 |
# using the default "fork" method messes up some imported libs (e.g.,
|
306 |
# pandas)
|
307 |
# mp.set_start_method("spawn")
|
|
|
204 |
with gr.Column(scale=1):
|
205 |
with gr.Tab('Image') as img_tab:
|
206 |
img_path = gr.Image(label='Image Input', type='filepath')
|
207 |
+
# gr.Examples(
|
208 |
+
# examples=[
|
209 |
+
# ["examples/animal.png", "Why this image is funny?"],
|
210 |
+
# ["examples/food_menu.png", "Introduce me the poster."],
|
211 |
+
# ],
|
212 |
+
# inputs=[img_path, msg],
|
213 |
+
# )
|
214 |
with gr.Tab('Video') as video_tab:
|
215 |
video_path = gr.Video(label='Video Input')
|
216 |
+
# gr.Examples(
|
217 |
+
# examples=[
|
218 |
+
# ["examples/flower.mp4", "What process does this video record?"],
|
219 |
+
# ["examples/caixukun.mp4", "Describe the video in detail."],
|
220 |
+
# ],
|
221 |
+
# inputs=[video_path, msg],
|
222 |
+
# )
|
223 |
with gr.Tab('Audio') as audio_tab:
|
224 |
audio_path = gr.Audio(label='Audio Input', type='filepath', sources=['upload'])
|
225 |
+
# gr.Examples(
|
226 |
+
# examples=[
|
227 |
+
# ["examples/bell_ring.wav", "What can you hear in the audio?"],
|
228 |
+
# ["examples/bird_audio.wav", "Describe the audio."],
|
229 |
+
# ],
|
230 |
+
# inputs=[audio_path, msg],
|
231 |
+
# )
|
232 |
with gr.Tab('Point Cloud') as point_tab:
|
233 |
gr.Markdown('Coming soon🤗')
|
234 |
with gr.Tab('IMU') as imu_tab:
|
|
|
301 |
|
302 |
if __name__ == "__main__":
|
303 |
args = DemoConfig()
|
304 |
+
|
305 |
# using the default "fork" method messes up some imported libs (e.g.,
|
306 |
# pandas)
|
307 |
# mp.set_start_method("spawn")
|