Spaces:
Sleeping
Sleeping
Update app.py 230219
Browse files
app.py
CHANGED
|
@@ -1,30 +1,52 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import numpy as np
|
| 3 |
|
| 4 |
-
|
| 5 |
-
def flip_image(x):
|
| 6 |
|
| 7 |
-
spell = ''
|
| 8 |
-
spell += '
|
| 9 |
-
spell += 'pero mantiene cualquier energía sana de los lugares, seres y
|
| 10 |
spell += 'OM AH HUNG, para limpiar'
|
| 11 |
-
spell += '
|
| 12 |
-
spell += 'reforzamos la buena energía, las buenas intenciones, los buenos deseos, el amor'
|
|
|
|
| 13 |
spell += 'OM MANI PADME HUNG';
|
| 14 |
-
spell += 'para el beneficio de todos los seres'
|
| 15 |
|
| 16 |
return x
|
| 17 |
|
| 18 |
with gr.Blocks() as demo:
|
| 19 |
gr.Markdown("# Radionic App")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
with gr.Row():
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
-
|
| 26 |
|
| 27 |
-
examples = gr.Examples(examples=[
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
inputs=[image_input])
|
| 29 |
|
| 30 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import numpy as np
|
| 3 |
|
| 4 |
+
def spell_to_image(x, special_text):
|
|
|
|
| 5 |
|
| 6 |
+
spell = ''
|
| 7 |
+
spell += 'Esta imagen es limpiada de energía caotica, dañida y de la mala intención'
|
| 8 |
+
spell += 'pero mantiene cualquier energía sana de los lugares, seres, objetos y buenas intenciones presentes'
|
| 9 |
spell += 'OM AH HUNG, para limpiar'
|
| 10 |
+
spell += 'esta imagen es activada magicamente para emanar buena energía'
|
| 11 |
+
spell += 'reforzamos la buena energía, las buenas intenciones, los buenos deseos, el amor'
|
| 12 |
+
spell += 'aplicamos la siguiente conjuro: ' + special_text
|
| 13 |
spell += 'OM MANI PADME HUNG';
|
| 14 |
+
spell += 'para el beneficio de todos los seres'
|
| 15 |
|
| 16 |
return x
|
| 17 |
|
| 18 |
with gr.Blocks() as demo:
|
| 19 |
gr.Markdown("# Radionic App")
|
| 20 |
+
gr.Markdown(
|
| 21 |
+
''' This is an experimental project. The goal is to create a digital interface for the clean protection and digital images of subtle energies. The idea is simple, the application applies a subtle program in the form of a spell on the image to modify the subtle vibration of the image. The project is based on radionic machines.
|
| 22 |
+
|
| 23 |
+
### Instructions
|
| 24 |
+
|
| 25 |
+
The process is very simple. Upload an image. Put a wish or intention for the image and apply it with the clean button.
|
| 26 |
+
|
| 27 |
+
Try to feel what happens in the result image.
|
| 28 |
+
|
| 29 |
+
There is some examples you can use.
|
| 30 |
+
|
| 31 |
+
If you know about Radionics, try to add a number rate to be apply to the image and test the result
|
| 32 |
+
'''
|
| 33 |
+
)
|
| 34 |
with gr.Row():
|
| 35 |
+
with gr.Column(scale=1):
|
| 36 |
+
image_input = gr.Image()
|
| 37 |
+
spell_input = gr.Text(lines=2, placeholder="Write your own spell")
|
| 38 |
+
spell_button = gr.Button("Clean and protect")
|
| 39 |
+
with gr.Column(scale=2):
|
| 40 |
+
image_output = gr.Image()
|
| 41 |
+
|
| 42 |
|
| 43 |
+
spell_button.click(spell_to_image, inputs=[image_input,spell_input], outputs=image_output)
|
| 44 |
|
| 45 |
+
examples = gr.Examples(examples=['bernd-dittrich-unsplash.jpg',
|
| 46 |
+
'leiada-krozjhen-8nP8jsg3u68-unsplash.jpg',
|
| 47 |
+
'michael-martinelli-cnt3JwRn4eI-unsplash.jpg',
|
| 48 |
+
'mustafa-aslan-CZLuLLDC8mQ-unsplash.jpg',
|
| 49 |
+
'quang-nguyen-vinh-3il07gRCne0-unsplash.jpg'],
|
| 50 |
inputs=[image_input])
|
| 51 |
|
| 52 |
demo.launch()
|