Spaces:
Runtime error
Runtime error
Commit
·
e880420
1
Parent(s):
f8f6667
test input
Browse files
app.py
CHANGED
|
@@ -76,6 +76,15 @@ def update_slider(choice: str) -> dict:
|
|
| 76 |
def set_example_image(example: list) -> dict:
|
| 77 |
return gr.Image.update(value=example[0])
|
| 78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
def set_example_video(example: list) -> dict:
|
| 80 |
return gr.Video.update(value=example[0]),
|
| 81 |
|
|
@@ -247,10 +256,7 @@ def main():
|
|
| 247 |
vtoonify_button = gr.Button('VToonify!')
|
| 248 |
|
| 249 |
gr.Markdown(ARTICLE)
|
| 250 |
-
btn = gr.Button("Apii")
|
| 251 |
-
btn.click(add, [num1, num2], output, api_name="addition")
|
| 252 |
gr.Markdown(FOOTER)
|
| 253 |
-
|
| 254 |
loadmodel_button.click(fn=model.load_model,
|
| 255 |
inputs=[style_type],
|
| 256 |
outputs=[exstyle, load_info])
|
|
@@ -286,6 +292,7 @@ def main():
|
|
| 286 |
enable_queue=args.enable_queue,
|
| 287 |
server_port=args.port,
|
| 288 |
share=args.share,
|
|
|
|
| 289 |
)
|
| 290 |
|
| 291 |
|
|
|
|
| 76 |
def set_example_image(example: list) -> dict:
|
| 77 |
return gr.Image.update(value=example[0])
|
| 78 |
|
| 79 |
+
def greet(name):
|
| 80 |
+
return "Hello " + name + "!"
|
| 81 |
+
|
| 82 |
+
with gr.Blocks() as demo:
|
| 83 |
+
name = gr.Textbox(label="Name")
|
| 84 |
+
output = gr.Textbox(label="Output Box")
|
| 85 |
+
greet_btn = gr.Button("Greet")
|
| 86 |
+
greet_btn.click(fn=greet, inputs=name, outputs=output)
|
| 87 |
+
|
| 88 |
def set_example_video(example: list) -> dict:
|
| 89 |
return gr.Video.update(value=example[0]),
|
| 90 |
|
|
|
|
| 256 |
vtoonify_button = gr.Button('VToonify!')
|
| 257 |
|
| 258 |
gr.Markdown(ARTICLE)
|
|
|
|
|
|
|
| 259 |
gr.Markdown(FOOTER)
|
|
|
|
| 260 |
loadmodel_button.click(fn=model.load_model,
|
| 261 |
inputs=[style_type],
|
| 262 |
outputs=[exstyle, load_info])
|
|
|
|
| 292 |
enable_queue=args.enable_queue,
|
| 293 |
server_port=args.port,
|
| 294 |
share=args.share,
|
| 295 |
+
show_api=True
|
| 296 |
)
|
| 297 |
|
| 298 |
|