Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,6 +100,7 @@ with gr.Blocks() as demo:
|
|
100 |
btn_login = gr.Button('Login')
|
101 |
|
102 |
with gr.Tab("File extraction"):
|
|
|
103 |
gr.Markdown(" Put either just a link, or a link and an excel file with an 'Actions' column")
|
104 |
with gr.Row():
|
105 |
dd_url = gr.Dropdown(label="(e.g. https://www.3gpp.org/ftp/TSG_SA/WG1_Serv/TSGS1_105_Athens/Docs)", multiselect=False, value="https://www.3gpp.org/ftp/", allow_custom_value=True, scale=9)
|
@@ -112,6 +113,7 @@ with gr.Blocks() as demo:
|
|
112 |
|
113 |
|
114 |
with gr.Tab("Ask LLM"):
|
|
|
115 |
dd_source_ask = gr.Dropdown(label="Source Column(s)", multiselect=True)
|
116 |
tb_destcol = gr.Textbox(label="Destination column label (e.g. Summary, ELI5, PAB)")
|
117 |
dd_prompt = gr.Dropdown(label="Prompt", allow_custom_value=True, multiselect=True, max_choices=1)
|
@@ -123,6 +125,7 @@ with gr.Blocks() as demo:
|
|
123 |
mist_button = gr.Button("Ask AI")
|
124 |
|
125 |
with gr.Tab("Classification by topic"):
|
|
|
126 |
dd_source_class = gr.Dropdown(label="Source Column", multiselect=False)
|
127 |
gr.Markdown("### The predefined categories can be modified at any time")
|
128 |
df_category = gr.DataFrame(label='categories', value=df_cate, interactive=True)
|
@@ -151,6 +154,7 @@ with gr.Blocks() as demo:
|
|
151 |
plt_chart3 = gr.Plot(label="Graphique")
|
152 |
|
153 |
with gr.Tab("Code on your file"):
|
|
|
154 |
with gr.Accordion("Input DataFrame Preview", open=False):
|
155 |
df_input = gr.DataFrame(interactive=False)
|
156 |
gr.Markdown("```python\ndf = pd.read_excel(YOUR_FILE)\n```")
|
|
|
100 |
btn_login = gr.Button('Login')
|
101 |
|
102 |
with gr.Tab("File extraction"):
|
103 |
+
gr.Markdown("**This part aims to extract the most relevant content and information about every contribution from a 3gpp meeting**")
|
104 |
gr.Markdown(" Put either just a link, or a link and an excel file with an 'Actions' column")
|
105 |
with gr.Row():
|
106 |
dd_url = gr.Dropdown(label="(e.g. https://www.3gpp.org/ftp/TSG_SA/WG1_Serv/TSGS1_105_Athens/Docs)", multiselect=False, value="https://www.3gpp.org/ftp/", allow_custom_value=True, scale=9)
|
|
|
113 |
|
114 |
|
115 |
with gr.Tab("Ask LLM"):
|
116 |
+
gr.Markdown("**This section utilizes Large Language Models (LLMs) to query rows in an Excel file**")
|
117 |
dd_source_ask = gr.Dropdown(label="Source Column(s)", multiselect=True)
|
118 |
tb_destcol = gr.Textbox(label="Destination column label (e.g. Summary, ELI5, PAB)")
|
119 |
dd_prompt = gr.Dropdown(label="Prompt", allow_custom_value=True, multiselect=True, max_choices=1)
|
|
|
125 |
mist_button = gr.Button("Ask AI")
|
126 |
|
127 |
with gr.Tab("Classification by topic"):
|
128 |
+
gr.Markdown("**This section utilizes Large Language Models (LLMs) to query rows in an Excel file**")
|
129 |
dd_source_class = gr.Dropdown(label="Source Column", multiselect=False)
|
130 |
gr.Markdown("### The predefined categories can be modified at any time")
|
131 |
df_category = gr.DataFrame(label='categories', value=df_cate, interactive=True)
|
|
|
154 |
plt_chart3 = gr.Plot(label="Graphique")
|
155 |
|
156 |
with gr.Tab("Code on your file"):
|
157 |
+
gr.Markdown("**This section lets you add your own code to add functions and filters to edit the files**")
|
158 |
with gr.Accordion("Input DataFrame Preview", open=False):
|
159 |
df_input = gr.DataFrame(interactive=False)
|
160 |
gr.Markdown("```python\ndf = pd.read_excel(YOUR_FILE)\n```")
|