Spaces:
Running
Running
Playing with formatting while the other thing compiles.
Browse files
app.py
CHANGED
@@ -172,7 +172,7 @@ def add_new_eval(
|
|
172 |
f.write(json.dumps(request_dict))
|
173 |
|
174 |
print("Starting compute space at %s " % COMPUTE_SPACE)
|
175 |
-
start_compute_space()
|
176 |
|
177 |
|
178 |
|
@@ -185,7 +185,7 @@ with gr.Blocks() as demo:
|
|
185 |
gr.Markdown("### The job will be launched at [EnergyStarAI/launch-computation-example](https://huggingface.co/spaces/EnergyStarAI/launch-computation-example).")
|
186 |
with gr.Row():
|
187 |
with gr.Column():
|
188 |
-
model_name_textbox = gr.Textbox(label="Model name",
|
189 |
revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
|
190 |
model_type = gr.Dropdown(
|
191 |
choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
|
|
|
172 |
f.write(json.dumps(request_dict))
|
173 |
|
174 |
print("Starting compute space at %s " % COMPUTE_SPACE)
|
175 |
+
return start_compute_space()
|
176 |
|
177 |
|
178 |
|
|
|
185 |
gr.Markdown("### The job will be launched at [EnergyStarAI/launch-computation-example](https://huggingface.co/spaces/EnergyStarAI/launch-computation-example).")
|
186 |
with gr.Row():
|
187 |
with gr.Column():
|
188 |
+
model_name_textbox = gr.Textbox(label="Model name", value="lvwerra/distilbert-imdb")
|
189 |
revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
|
190 |
model_type = gr.Dropdown(
|
191 |
choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
|