Spaces:
Runtime error
Runtime error
Commit
·
420c3e8
1
Parent(s):
06a41c4
himself
Browse files
app.py
CHANGED
|
@@ -94,11 +94,15 @@ def flip_text(x):
|
|
| 94 |
def flip_image(x):
|
| 95 |
return np.fliplr(x)
|
| 96 |
js = """
|
|
|
|
| 97 |
document.getElementById('component-2').style.height="350px"
|
|
|
|
|
|
|
|
|
|
| 98 |
"""
|
| 99 |
css = "#component-2 {height: 350px}"
|
| 100 |
|
| 101 |
-
with gr.Blocks(title="Sophia, Torah Codes",css=css) as app:
|
| 102 |
#with gr.Blocks(theme='gradio/soft') as demo:
|
| 103 |
#with gr.Blocks(title="Sophia, Torah Codes") as app:
|
| 104 |
#with gr.Row():
|
|
|
|
| 94 |
def flip_image(x):
|
| 95 |
return np.fliplr(x)
|
| 96 |
js = """
|
| 97 |
+
try{
|
| 98 |
document.getElementById('component-2').style.height="350px"
|
| 99 |
+
}catch(e){
|
| 100 |
+
console.log('')
|
| 101 |
+
}
|
| 102 |
"""
|
| 103 |
css = "#component-2 {height: 350px}"
|
| 104 |
|
| 105 |
+
with gr.Blocks(title="Sophia, Torah Codes",css=css,js=js) as app:
|
| 106 |
#with gr.Blocks(theme='gradio/soft') as demo:
|
| 107 |
#with gr.Blocks(title="Sophia, Torah Codes") as app:
|
| 108 |
#with gr.Row():
|