Spaces:
Sleeping
Sleeping
Commit
·
08a88d3
1
Parent(s):
ac581fa
update ui
Browse files
app.py
CHANGED
|
@@ -82,16 +82,17 @@ def llm_ui():
|
|
| 82 |
with gr.Row():
|
| 83 |
chatbot = gr.Chatbot()
|
| 84 |
|
| 85 |
-
hf_token_box = gr.Textbox(lines=1, placeholder="
|
| 86 |
-
|
| 87 |
-
with gr.Row():
|
| 88 |
-
model_selection = gr.Dropdown(choices=model_ids_llm, value=model_ids_llm[0], label="Model", scale=3)
|
| 89 |
-
clear_button = gr.Button("Clear Chat", scale=2)
|
| 90 |
|
| 91 |
with gr.Group():
|
| 92 |
with gr.Row():
|
| 93 |
user_input = gr.Textbox(placeholder="Type your coding problem here...", label="User Input", show_label=False, scale=8)
|
| 94 |
send_button = gr.Button("Send", scale=2, variant = "primary")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
with gr.Row():
|
| 96 |
voice_input = gr.Microphone(type="filepath", label="Voice Input", scale=7)
|
| 97 |
voice_button = gr.Button("Use Audio as User Input", scale=3)
|
|
@@ -116,11 +117,7 @@ def multimodal_llm_ui():
|
|
| 116 |
with gr.Row():
|
| 117 |
chatbot = gr.Chatbot(height=550)
|
| 118 |
with gr.Column():
|
| 119 |
-
|
| 120 |
-
model_selection = gr.Dropdown(choices=model_ids_multimodal, value=model_ids_multimodal[0], label="Select Model", scale=3)
|
| 121 |
-
clear_button = gr.Button("Clear Chat", scale=2)
|
| 122 |
-
|
| 123 |
-
hf_token_box = gr.Textbox(lines=1, placeholder="Your Hugging Face token - Check if you have access to selected model", label="Hugging Face Token", type="password")
|
| 124 |
|
| 125 |
image_input = gr.Image(type="filepath", label="Input your Image Here....")
|
| 126 |
|
|
@@ -129,6 +126,10 @@ def multimodal_llm_ui():
|
|
| 129 |
user_input = gr.Textbox(placeholder="Type your problem here...", label="User Input", show_label=False, scale=8)
|
| 130 |
send_button = gr.Button("Send", scale=2, elem_id="send-button", variant = "primary")
|
| 131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
with gr.Row():
|
| 133 |
voice_input = gr.Microphone(type="filepath", label="Voice Input", scale=7)
|
| 134 |
voice_button = gr.Button("Use Audio as User Input", scale=3)
|
|
|
|
| 82 |
with gr.Row():
|
| 83 |
chatbot = gr.Chatbot()
|
| 84 |
|
| 85 |
+
hf_token_box = gr.Textbox(lines=1, placeholder="Check if you have access to selected model", label="Hugging Face Token - Required", type="password")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
with gr.Group():
|
| 88 |
with gr.Row():
|
| 89 |
user_input = gr.Textbox(placeholder="Type your coding problem here...", label="User Input", show_label=False, scale=8)
|
| 90 |
send_button = gr.Button("Send", scale=2, variant = "primary")
|
| 91 |
+
|
| 92 |
+
with gr.Row():
|
| 93 |
+
model_selection = gr.Dropdown(choices=model_ids_llm, value=model_ids_llm[0], label="Model", scale=3)
|
| 94 |
+
clear_button = gr.Button("Clear Chat", scale=2)
|
| 95 |
+
|
| 96 |
with gr.Row():
|
| 97 |
voice_input = gr.Microphone(type="filepath", label="Voice Input", scale=7)
|
| 98 |
voice_button = gr.Button("Use Audio as User Input", scale=3)
|
|
|
|
| 117 |
with gr.Row():
|
| 118 |
chatbot = gr.Chatbot(height=550)
|
| 119 |
with gr.Column():
|
| 120 |
+
hf_token_box = gr.Textbox(lines=1, placeholder="Check if you have access to selected model", label="Hugging Face Token - Required", type="password")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
|
| 122 |
image_input = gr.Image(type="filepath", label="Input your Image Here....")
|
| 123 |
|
|
|
|
| 126 |
user_input = gr.Textbox(placeholder="Type your problem here...", label="User Input", show_label=False, scale=8)
|
| 127 |
send_button = gr.Button("Send", scale=2, elem_id="send-button", variant = "primary")
|
| 128 |
|
| 129 |
+
with gr.Row():
|
| 130 |
+
model_selection = gr.Dropdown(choices=model_ids_multimodal, value=model_ids_multimodal[0], label="Select Model", scale=3)
|
| 131 |
+
clear_button = gr.Button("Clear Chat", scale=2)
|
| 132 |
+
|
| 133 |
with gr.Row():
|
| 134 |
voice_input = gr.Microphone(type="filepath", label="Voice Input", scale=7)
|
| 135 |
voice_button = gr.Button("Use Audio as User Input", scale=3)
|