Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -105,12 +105,12 @@ with gr.Blocks(analytics_enabled=False, css='style.css') as demo:
|
|
105 |
gr.Markdown("Typical **Techniques**: oil on canvas, chinese painting, graffiti, watercolour, graphite, cinematic, film noir, fluorescent, moody lighting, silhouette, ultraviolet, x-ray, olaroid, double exposure, fisheye lens, bokeh")
|
106 |
|
107 |
Literally.click(pipe, inputs=[input_text], outputs=[prompt], queue=False)
|
108 |
-
Translate.click(ru2en, inputs=[input_text_ru], outputs=[input_text], queue=False)
|
109 |
-
Explain.click(text_gen, inputs=[input_text], outputs=[prompt], queue=False)
|
110 |
|
111 |
-
run1.click(send_it, inputs=[prompt, noise_level], outputs=[output1])
|
112 |
-
run2.click(send_it, inputs=[prompt, noise_level], outputs=[output2])
|
113 |
-
run3.click(send_it, inputs=[prompt, noise_level], outputs=[output3])
|
114 |
# run4.click(send_it, inputs=[prompt, noise_level], outputs=[output4])
|
115 |
|
116 |
demo.launch(enable_queue=True, inline=True, show_api=False)
|
|
|
105 |
gr.Markdown("Typical **Techniques**: oil on canvas, chinese painting, graffiti, watercolour, graphite, cinematic, film noir, fluorescent, moody lighting, silhouette, ultraviolet, x-ray, olaroid, double exposure, fisheye lens, bokeh")
|
106 |
|
107 |
Literally.click(pipe, inputs=[input_text], outputs=[prompt], queue=False)
|
108 |
+
Translate.click(ru2en, inputs=[input_text_ru], outputs=[input_text], queue=False, api_name="ru2en")
|
109 |
+
Explain.click(text_gen, inputs=[input_text], outputs=[prompt], queue=False, api_name="explain")
|
110 |
|
111 |
+
run1.click(send_it, inputs=[prompt, noise_level], outputs=[output1], api_name="paint/0")
|
112 |
+
run2.click(send_it, inputs=[prompt, noise_level], outputs=[output2], api_name="paint/1")
|
113 |
+
run3.click(send_it, inputs=[prompt, noise_level], outputs=[output3], api_name="paint/2")
|
114 |
# run4.click(send_it, inputs=[prompt, noise_level], outputs=[output4])
|
115 |
|
116 |
demo.launch(enable_queue=True, inline=True, show_api=False)
|