nos commited on
Commit
f86f49e
1 Parent(s): 8190564

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -7
app.py CHANGED
@@ -62,13 +62,17 @@ def flip_image(x):
62
  with gr.Blocks() as demo:
63
 
64
  with gr.Tab("Chat"):
65
- chatbot = gr.Chatbot(scale=5)
66
- msg = gr.Textbox(scale=5)
67
- btn = gr.Button("Send",scale=1)
68
- clear = gr.ClearButton([msg, chatbot],scale=1)
69
- btn.click(respond, msg,[msg,chatbot])
70
- msg.submit(respond, msg, [msg, chatbot])
71
-
 
 
 
 
72
  with gr.Tab("ELS"):
73
  with gr.Row():
74
  text1 = gr.Textbox(label="Prompt to gematria conversion for apply ELS",scale=3)
 
62
  with gr.Blocks() as demo:
63
 
64
  with gr.Tab("Chat"):
65
+ gr.ChatInterface(
66
+ yes_man,
67
+ chatbot=gr.Chatbot(height=400),
68
+ textbox=gr.Textbox(placeholder="Ask me a yes or no question", container=False, scale=7),
69
+ title="Sophia, Torah Codes",
70
+ description="Ask Sophia your questions",
71
+ theme="soft",
72
+ retry_btn=True,
73
+ undo_btn="Undo",
74
+ clear_btn="Clear",
75
+ )
76
  with gr.Tab("ELS"):
77
  with gr.Row():
78
  text1 = gr.Textbox(label="Prompt to gematria conversion for apply ELS",scale=3)