Spaces:
Running
Running
jadehardouin
commited on
Commit
•
2b2948e
1
Parent(s):
29078ea
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
60 |
with gr.Row():
|
61 |
gr.Markdown(value=text0)
|
62 |
with gr.Row():
|
63 |
-
use_case = gr.Dropdown(["Summarize", "Question-Answering", "Classification"], value="Question-Answering", label="
|
64 |
with gr.Row():
|
65 |
input_tokens = gr.Slider(minimum=1, maximum=1000, value=300, step=1, label="Number of input token", info="We put a value that we find best suit your use case choice but feel free to adjust", interactive=True)
|
66 |
output_tokens = gr.Slider(minimum=1, maximum=1000, value=300, step=1, label="Number of output token", info="We put a value that we find best suit your use case choice but feel free to adjust", interactive=True)
|
@@ -86,7 +86,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
86 |
dropdown2.change(page2.make_model_visible, inputs=[dropdown2, use_case, num_users, input_tokens, output_tokens], outputs=page2.get_all_components())
|
87 |
|
88 |
gr.Markdown(value=text3)
|
89 |
-
compute_tco_btn = gr.Button("Compute cost/request", size="lg")
|
90 |
tco1 = gr.State()
|
91 |
tco2 = gr.State()
|
92 |
|
|
|
60 |
with gr.Row():
|
61 |
gr.Markdown(value=text0)
|
62 |
with gr.Row():
|
63 |
+
use_case = gr.Dropdown(["Summarize", "Question-Answering", "Classification"], value="Question-Answering", label="AI model service type")
|
64 |
with gr.Row():
|
65 |
input_tokens = gr.Slider(minimum=1, maximum=1000, value=300, step=1, label="Number of input token", info="We put a value that we find best suit your use case choice but feel free to adjust", interactive=True)
|
66 |
output_tokens = gr.Slider(minimum=1, maximum=1000, value=300, step=1, label="Number of output token", info="We put a value that we find best suit your use case choice but feel free to adjust", interactive=True)
|
|
|
86 |
dropdown2.change(page2.make_model_visible, inputs=[dropdown2, use_case, num_users, input_tokens, output_tokens], outputs=page2.get_all_components())
|
87 |
|
88 |
gr.Markdown(value=text3)
|
89 |
+
compute_tco_btn = gr.Button("Compute cost/request and TCOs", size="lg")
|
90 |
tco1 = gr.State()
|
91 |
tco2 = gr.State()
|
92 |
|