Gabriel Sabau
commited on
Commit
·
ed955b1
1
Parent(s):
1b8b8ac
feat: update gradio version
Browse files- app.py +5 -5
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -13,7 +13,7 @@ PASS = os.getenv("PASSWORD")
|
|
| 13 |
|
| 14 |
# create an interface and limit output's width for the dataframe bu
|
| 15 |
list_iface = gr.Interface(fn=compute_offer,
|
| 16 |
-
inputs=[gr.File(label="Upload CSV", type="
|
| 17 |
gr.Slider(0, 365, value=3, step=1, label="Days", info="Number of days to look back"),
|
| 18 |
gr.Slider(5000, 10000000, value=1000000, step=1, label="Minimum Sent", info="Minimum number of emails sent"),
|
| 19 |
gr.Dropdown(["Comcast", "Yahoo", "Hotmail", "Aol"], value="Yahoo", label="Domain"),
|
|
@@ -42,7 +42,7 @@ def plot_df(filename):
|
|
| 42 |
|
| 43 |
|
| 44 |
plt_iface = gr.Interface(fn=plot_df,
|
| 45 |
-
inputs=gr.File(label="Upload CSV", type="
|
| 46 |
outputs=gr.Plot())
|
| 47 |
|
| 48 |
|
|
@@ -69,8 +69,8 @@ with gr.Blocks() as aeon:
|
|
| 69 |
max_ips.change(fn=update_header, inputs=max_ips, outputs=header_box)
|
| 70 |
with gr.Row():
|
| 71 |
with gr.Column():
|
| 72 |
-
gen_cmds_btn = gr.Button(label="Generate Commands")
|
| 73 |
-
|
| 74 |
# with gr.Column():
|
| 75 |
# reset_btn = gr.ClearButton(components=[ip_subclasses_raw, num_of_ips, domains_raw])
|
| 76 |
with gr.Row():
|
|
@@ -107,7 +107,7 @@ with gr.Blocks() as aeon:
|
|
| 107 |
|
| 108 |
with gr.Row():
|
| 109 |
with gr.Column():
|
| 110 |
-
reset_btn = gr.ClearButton(
|
| 111 |
with gr.Column():
|
| 112 |
mix_btn = gr.Button("Mix IPs and Domains")
|
| 113 |
mix_btn.click(fn=mix, inputs=[domains_raw, output_ips, num_of_ips],
|
|
|
|
| 13 |
|
| 14 |
# create an interface and limit output's width for the dataframe bu
|
| 15 |
list_iface = gr.Interface(fn=compute_offer,
|
| 16 |
+
inputs=[gr.File(label="Upload CSV", type="filepath"),
|
| 17 |
gr.Slider(0, 365, value=3, step=1, label="Days", info="Number of days to look back"),
|
| 18 |
gr.Slider(5000, 10000000, value=1000000, step=1, label="Minimum Sent", info="Minimum number of emails sent"),
|
| 19 |
gr.Dropdown(["Comcast", "Yahoo", "Hotmail", "Aol"], value="Yahoo", label="Domain"),
|
|
|
|
| 42 |
|
| 43 |
|
| 44 |
plt_iface = gr.Interface(fn=plot_df,
|
| 45 |
+
inputs=gr.File(label="Upload CSV", type="filepath"),
|
| 46 |
outputs=gr.Plot())
|
| 47 |
|
| 48 |
|
|
|
|
| 69 |
max_ips.change(fn=update_header, inputs=max_ips, outputs=header_box)
|
| 70 |
with gr.Row():
|
| 71 |
with gr.Column():
|
| 72 |
+
# gen_cmds_btn = gr.Button(label="Generate Commands")
|
| 73 |
+
gen_cmds_btn = gr.Button("Generate Commands")
|
| 74 |
# with gr.Column():
|
| 75 |
# reset_btn = gr.ClearButton(components=[ip_subclasses_raw, num_of_ips, domains_raw])
|
| 76 |
with gr.Row():
|
|
|
|
| 107 |
|
| 108 |
with gr.Row():
|
| 109 |
with gr.Column():
|
| 110 |
+
reset_btn = gr.ClearButton(value="Reset", components=[ip_subclasses_raw, domains_raw])
|
| 111 |
with gr.Column():
|
| 112 |
mix_btn = gr.Button("Mix IPs and Domains")
|
| 113 |
mix_btn.click(fn=mix, inputs=[domains_raw, output_ips, num_of_ips],
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
python-dotenv
|
| 2 |
pandas
|
| 3 |
-
gradio==
|
| 4 |
seaborn
|
|
|
|
| 1 |
python-dotenv
|
| 2 |
pandas
|
| 3 |
+
gradio==5.4.0
|
| 4 |
seaborn
|