Spaces:
Sleeping
Sleeping
Commit
·
85fb714
1
Parent(s):
a2bb2cd
tidy imports
Browse files
app.py
CHANGED
@@ -1,13 +1,11 @@
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
-
from httpx import Client
|
3 |
import pandas as pd
|
4 |
-
from datasets import Dataset
|
|
|
5 |
|
6 |
client = Client()
|
7 |
-
from io import StringIO
|
8 |
-
from datasets import ClassLabel
|
9 |
-
from datasets import Image
|
10 |
-
|
11 |
USER_DATA = {}
|
12 |
|
13 |
|
@@ -64,7 +62,8 @@ def push_annotations_to_hub(project_id, input_column, input_column_type, label_c
|
|
64 |
with gr.Blocks() as demo:
|
65 |
gr.Markdown("# Push label studio datasets to the hub")
|
66 |
gr.Markdown(
|
67 |
-
"This is a proof of concept app which provides a GUI for exporting data from
|
|
|
68 |
)
|
69 |
with gr.Row():
|
70 |
with gr.Column():
|
@@ -78,7 +77,9 @@ with gr.Blocks() as demo:
|
|
78 |
with gr.Row():
|
79 |
with gr.Row():
|
80 |
gr.Markdown(
|
81 |
-
"Space URL, this can be found by clicking on the three dots
|
|
|
|
|
82 |
)
|
83 |
with gr.Row():
|
84 |
SPACE_URL = gr.Textbox(
|
|
|
1 |
+
from io import StringIO
|
2 |
+
|
3 |
import gradio as gr
|
|
|
4 |
import pandas as pd
|
5 |
+
from datasets import ClassLabel, Dataset, Image
|
6 |
+
from httpx import Client
|
7 |
|
8 |
client = Client()
|
|
|
|
|
|
|
|
|
9 |
USER_DATA = {}
|
10 |
|
11 |
|
|
|
62 |
with gr.Blocks() as demo:
|
63 |
gr.Markdown("# Push label studio datasets to the hub")
|
64 |
gr.Markdown(
|
65 |
+
"This is a proof of concept app which provides a GUI for exporting data from"
|
66 |
+
" Label Studio and pushing the loaded dataset to the Hugging Face Hub"
|
67 |
)
|
68 |
with gr.Row():
|
69 |
with gr.Column():
|
|
|
77 |
with gr.Row():
|
78 |
with gr.Row():
|
79 |
gr.Markdown(
|
80 |
+
"Space URL, this can be found by clicking on the three dots"
|
81 |
+
" button on your space and copying the URL shown after clicking"
|
82 |
+
" the Embed Space button"
|
83 |
)
|
84 |
with gr.Row():
|
85 |
SPACE_URL = gr.Textbox(
|