Spaces:
Running
Running
clean up
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def create_experiment(
|
|
39 |
Please add your API key in order to log your predictions to a Comet Experiment.
|
40 |
If you don't have a Comet account yet, you can sign up using the link below:
|
41 |
|
42 |
-
https://www.comet.ml/signup
|
43 |
""",
|
44 |
)
|
45 |
|
@@ -142,7 +142,7 @@ def start_interface():
|
|
142 |
start = gr.Button("Create Experiment", variant="primary")
|
143 |
status = gr.Button("Experiment Status")
|
144 |
|
145 |
-
|
146 |
experiment_state = gr.Variable(label="Experiment State")
|
147 |
|
148 |
start.click(
|
@@ -154,18 +154,18 @@ def start_interface():
|
|
154 |
comet_experiment_name,
|
155 |
experiment_state,
|
156 |
],
|
157 |
-
outputs=[experiment_state,
|
158 |
)
|
159 |
|
160 |
status.click(
|
161 |
get_experiment_status,
|
162 |
inputs=[experiment_state],
|
163 |
-
outputs=[experiment_state,
|
164 |
)
|
165 |
|
166 |
with gr.TabItem(label="Diffusion Model"):
|
167 |
diff_description = gr.Markdown(
|
168 |
-
"""The Model must be a path to any Space that accepts
|
169 |
only text as input and produces an image as an output
|
170 |
"""
|
171 |
)
|
|
|
39 |
Please add your API key in order to log your predictions to a Comet Experiment.
|
40 |
If you don't have a Comet account yet, you can sign up using the link below:
|
41 |
|
42 |
+
[Sign Up for Comet](https://www.comet.ml/signup)
|
43 |
""",
|
44 |
)
|
45 |
|
|
|
142 |
start = gr.Button("Create Experiment", variant="primary")
|
143 |
status = gr.Button("Experiment Status")
|
144 |
|
145 |
+
status_output = gr.Markdown(label="Status")
|
146 |
experiment_state = gr.Variable(label="Experiment State")
|
147 |
|
148 |
start.click(
|
|
|
154 |
comet_experiment_name,
|
155 |
experiment_state,
|
156 |
],
|
157 |
+
outputs=[experiment_state, status_output],
|
158 |
)
|
159 |
|
160 |
status.click(
|
161 |
get_experiment_status,
|
162 |
inputs=[experiment_state],
|
163 |
+
outputs=[experiment_state, status_output],
|
164 |
)
|
165 |
|
166 |
with gr.TabItem(label="Diffusion Model"):
|
167 |
diff_description = gr.Markdown(
|
168 |
+
"""The Model must be a path to any Space that accepts
|
169 |
only text as input and produces an image as an output
|
170 |
"""
|
171 |
)
|