Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -144,11 +144,23 @@ with gr.Blocks(title="Task Caching Demo", theme=gr.themes.Soft()) as demo:
|
|
144 |
info="Enter the SambaNova model name (e.g., samba/DeepSeek-R1-Distill-Llama-70B). Ensure the 'samba/' prefix if required by litellm configuration."
|
145 |
)
|
146 |
# END OF ADDED PART
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
|
148 |
with gr.Tabs():
|
149 |
with gr.TabItem("1. Generate Cheatsheet (Task Caching)"):
|
150 |
gr.Markdown("Paste your training data below, one example per line. This data will be used to build a cumulative cheatsheet. The process may take some time depending on the number of examples.")
|
151 |
-
training_data_input = gr.Textbox(lines=10, label="Training Data", placeholder=
|
152 |
generate_cheatsheet_button = gr.Button("Generate Cheatsheet (Task Caching)", variant="primary")
|
153 |
cheatsheet_output = gr.Textbox(label="Generated Cheatsheet", lines=15, interactive=False, show_label=True)
|
154 |
generate_cheatsheet_button.click(
|
|
|
144 |
info="Enter the SambaNova model name (e.g., samba/DeepSeek-R1-Distill-Llama-70B). Ensure the 'samba/' prefix if required by litellm configuration."
|
145 |
)
|
146 |
# END OF ADDED PART
|
147 |
+
|
148 |
+
training_data_example = '''
|
149 |
+
Solve for 24: 1 2 3 4
|
150 |
+
Solve for 24: 2 3 4 5
|
151 |
+
Solve for 24: 3 4 5 6
|
152 |
+
Solve for 24: 4 5 6 7
|
153 |
+
Solve for 24: 1 1 1 1
|
154 |
+
Solve for 24: 8 8 3 3
|
155 |
+
Solve for 24: 5 5 5 1
|
156 |
+
Solve for 24: 2 2 7 7
|
157 |
+
'''
|
158 |
+
|
159 |
|
160 |
with gr.Tabs():
|
161 |
with gr.TabItem("1. Generate Cheatsheet (Task Caching)"):
|
162 |
gr.Markdown("Paste your training data below, one example per line. This data will be used to build a cumulative cheatsheet. The process may take some time depending on the number of examples.")
|
163 |
+
training_data_input = gr.Textbox(lines=10, label="Training Data", placeholder=training_data_example)
|
164 |
generate_cheatsheet_button = gr.Button("Generate Cheatsheet (Task Caching)", variant="primary")
|
165 |
cheatsheet_output = gr.Textbox(label="Generated Cheatsheet", lines=15, interactive=False, show_label=True)
|
166 |
generate_cheatsheet_button.click(
|