Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ from urllib.request import urlopen
|
|
4 |
import json
|
5 |
import time
|
6 |
from load_llms import model_choices, llm_intro, load_model
|
7 |
-
from utils import show_image
|
8 |
|
9 |
|
10 |
# Construct chatbot
|
@@ -39,16 +38,15 @@ with gr.Blocks(
|
|
39 |
# Link the dropdown with the textbox to update the description based on the selected model
|
40 |
model_dropdown.change(fn=llm_intro, inputs=model_dropdown, outputs=explanation)
|
41 |
|
42 |
-
gr.
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
)
|
52 |
|
53 |
with gr.Column(scale=4, elem_id='col'):
|
54 |
chatbot = gr.Chatbot(label="Chatroom", value=[(None, "How may I help you today?")], elem_id="chatbot")
|
|
|
4 |
import json
|
5 |
import time
|
6 |
from load_llms import model_choices, llm_intro, load_model
|
|
|
7 |
|
8 |
|
9 |
# Construct chatbot
|
|
|
38 |
# Link the dropdown with the textbox to update the description based on the selected model
|
39 |
model_dropdown.change(fn=llm_intro, inputs=model_dropdown, outputs=explanation)
|
40 |
|
41 |
+
gallery = gr.Gallery(label="Current Space Hardware used",
|
42 |
+
show_label=True,
|
43 |
+
interactive=False,
|
44 |
+
value="space_hardware.png",
|
45 |
+
type="filepath",
|
46 |
+
image_mode="RGBA",
|
47 |
+
show_share_button=False,
|
48 |
+
show_download_button=False
|
49 |
+
)
|
|
|
50 |
|
51 |
with gr.Column(scale=4, elem_id='col'):
|
52 |
chatbot = gr.Chatbot(label="Chatroom", value=[(None, "How may I help you today?")], elem_id="chatbot")
|