Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,7 +100,7 @@ def bot_streaming(message, history):
|
|
| 100 |
|
| 101 |
|
| 102 |
chatbot=gr.Chatbot(placeholder=PLACEHOLDER,scale=1)
|
| 103 |
-
chat_input = gr.MultimodalTextbox(interactive=True, file_types=["image"], placeholder="Enter message or upload file...", show_label=False)
|
| 104 |
tmp = '''with gr.Blocks(fill_height=True, ) as demo:
|
| 105 |
gr.ChatInterface(
|
| 106 |
fn=bot_streaming,
|
|
@@ -134,11 +134,6 @@ with gr.Blocks(fill_height=True) as demo:
|
|
| 134 |
num_start = gr.Number(visible=False, value=0)
|
| 135 |
num_end = gr.Number(visible=False, value=4)
|
| 136 |
|
| 137 |
-
#chat_msg = chat_input.submit(add_message, [chatbot, chat_input], [chatbot, chat_input])
|
| 138 |
-
#bot_msg = chat_msg.then(bot, chatbot, chatbot, api_name="bot_response")
|
| 139 |
-
#bot_msg.then(lambda: gr.MultimodalTextbox(interactive=True), None, [chat_input])
|
| 140 |
-
#chatbot.like(print_like_dislike, None, None)
|
| 141 |
-
|
| 142 |
def get_example(reka, start, evt: gr.SelectData):
|
| 143 |
print(f'evt.value = {evt.value}')
|
| 144 |
print(f'evt.index = {evt.index}')
|
|
|
|
| 100 |
|
| 101 |
|
| 102 |
chatbot=gr.Chatbot(placeholder=PLACEHOLDER,scale=1)
|
| 103 |
+
chat_input = gr.MultimodalTextbox(interactive=True, file_types=["image"], placeholder="Enter message or upload file...", show_label=False, scale=1)
|
| 104 |
tmp = '''with gr.Blocks(fill_height=True, ) as demo:
|
| 105 |
gr.ChatInterface(
|
| 106 |
fn=bot_streaming,
|
|
|
|
| 134 |
num_start = gr.Number(visible=False, value=0)
|
| 135 |
num_end = gr.Number(visible=False, value=4)
|
| 136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
def get_example(reka, start, evt: gr.SelectData):
|
| 138 |
print(f'evt.value = {evt.value}')
|
| 139 |
print(f'evt.index = {evt.index}')
|