Spaces:
Runtime error
Runtime error
Commit
·
d95d137
1
Parent(s):
207cccf
himself
Browse files
app.py
CHANGED
|
@@ -96,16 +96,16 @@ def flip_image(x):
|
|
| 96 |
|
| 97 |
|
| 98 |
#with gr.Blocks(theme='gradio/soft') as demo:
|
| 99 |
-
with gr.Blocks(title="Sophia, Torah Codes") as
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
with gr.Tab("ELS"):
|
| 110 |
with gr.Row():
|
| 111 |
books_sel = gr.CheckboxGroup(booklist,value=booklist, label="Books", info="Torah books source")
|
|
@@ -202,13 +202,6 @@ with gr.Blocks(title="Sophia, Torah Codes") as demo:
|
|
| 202 |
image_output = gr.Image()
|
| 203 |
image_button = gr.Button("Upload")
|
| 204 |
|
| 205 |
-
demo = gr.ChatInterface(
|
| 206 |
-
respond,
|
| 207 |
-
theme="soft",
|
| 208 |
-
retry_btn=None,
|
| 209 |
-
undo_btn="Undo",
|
| 210 |
-
clear_btn="Clear",
|
| 211 |
-
)
|
| 212 |
|
| 213 |
|
| 214 |
if __name__ == "__main__":
|
|
|
|
| 96 |
|
| 97 |
|
| 98 |
#with gr.Blocks(theme='gradio/soft') as demo:
|
| 99 |
+
with gr.Blocks(title="Sophia, Torah Codes") as app:
|
| 100 |
+
|
| 101 |
+
with gr.Tab("Chat"):
|
| 102 |
+
chatBot = gr.ChatInterface(
|
| 103 |
+
respond,
|
| 104 |
+
theme="soft",
|
| 105 |
+
retry_btn=None,
|
| 106 |
+
undo_btn="Undo",
|
| 107 |
+
clear_btn="Clear",
|
| 108 |
+
)
|
| 109 |
with gr.Tab("ELS"):
|
| 110 |
with gr.Row():
|
| 111 |
books_sel = gr.CheckboxGroup(booklist,value=booklist, label="Books", info="Torah books source")
|
|
|
|
| 202 |
image_output = gr.Image()
|
| 203 |
image_button = gr.Button("Upload")
|
| 204 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
|
| 206 |
|
| 207 |
if __name__ == "__main__":
|