Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ with gr.Blocks() as app:
|
|
22 |
def construct_prompt(*input_values):
|
23 |
return flow.task.format(*input_values)
|
24 |
|
25 |
-
gr.api(flow.to_json, api_name="flow_config")
|
26 |
-
|
27 |
|
28 |
if __name__ == "__main__":
|
29 |
app.launch()
|
|
|
22 |
def construct_prompt(*input_values):
|
23 |
return flow.task.format(*input_values)
|
24 |
|
25 |
+
gr.api(lambda : flow.to_json(), api_name="flow_config")
|
26 |
+
|
27 |
|
28 |
if __name__ == "__main__":
|
29 |
app.launch()
|