Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
1ab182d
1
Parent(s):
ed67886
wip
Browse files
app.py
CHANGED
@@ -167,6 +167,7 @@ with demo:
|
|
167 |
# )
|
168 |
# base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
|
169 |
|
|
|
170 |
submit_button = gr.Button("Submit Eval")
|
171 |
submission_result = gr.Markdown()
|
172 |
submit_button.click(
|
@@ -179,6 +180,7 @@ with demo:
|
|
179 |
)
|
180 |
|
181 |
with gr.Row():
|
|
|
182 |
with gr.Accordion("📙 Citation", open=False):
|
183 |
citation_button = gr.Textbox(
|
184 |
value=CITATION_BUTTON_TEXT,
|
@@ -188,7 +190,10 @@ with demo:
|
|
188 |
show_copy_button=True,
|
189 |
)
|
190 |
|
|
|
191 |
scheduler = BackgroundScheduler()
|
192 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|
193 |
scheduler.start()
|
|
|
194 |
demo.queue(default_concurrency_limit=40).launch()
|
|
|
|
167 |
# )
|
168 |
# base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
|
169 |
|
170 |
+
logger.info("Submut button")
|
171 |
submit_button = gr.Button("Submit Eval")
|
172 |
submission_result = gr.Markdown()
|
173 |
submit_button.click(
|
|
|
180 |
)
|
181 |
|
182 |
with gr.Row():
|
183 |
+
logger.info("Citation")
|
184 |
with gr.Accordion("📙 Citation", open=False):
|
185 |
citation_button = gr.Textbox(
|
186 |
value=CITATION_BUTTON_TEXT,
|
|
|
190 |
show_copy_button=True,
|
191 |
)
|
192 |
|
193 |
+
logger.info("Scheduler")
|
194 |
scheduler = BackgroundScheduler()
|
195 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|
196 |
scheduler.start()
|
197 |
+
logger.info("Launch")
|
198 |
demo.queue(default_concurrency_limit=40).launch()
|
199 |
+
logger.info("Done")
|