Spaces:
Sleeping
Sleeping
Commit
·
207cccf
1
Parent(s):
59583fc
himself
Browse files
app.py
CHANGED
|
@@ -98,14 +98,14 @@ def flip_image(x):
|
|
| 98 |
#with gr.Blocks(theme='gradio/soft') as demo:
|
| 99 |
with gr.Blocks(title="Sophia, Torah Codes") as demo:
|
| 100 |
|
| 101 |
-
with gr.Tab("Chat"):
|
| 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,6 +202,13 @@ with gr.Blocks(title="Sophia, Torah Codes") as demo:
|
|
| 202 |
image_output = gr.Image()
|
| 203 |
image_button = gr.Button("Upload")
|
| 204 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
|
| 206 |
|
| 207 |
if __name__ == "__main__":
|
|
|
|
| 98 |
#with gr.Blocks(theme='gradio/soft') as demo:
|
| 99 |
with gr.Blocks(title="Sophia, Torah Codes") as demo:
|
| 100 |
|
| 101 |
+
#with gr.Tab("Chat"):
|
| 102 |
+
# 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 |
+
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__":
|