Spaces:
Sleeping
Sleeping
Niki Zhang
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -1924,6 +1924,7 @@ def create_ui():
|
|
| 1924 |
|
| 1925 |
|
| 1926 |
with gr.Row():
|
|
|
|
| 1927 |
with gr.Column(scale=6):
|
| 1928 |
with gr.Column(visible=False) as modules_not_need_gpt:
|
| 1929 |
with gr.Row():
|
|
@@ -1982,24 +1983,6 @@ def create_ui():
|
|
| 1982 |
|
| 1983 |
recommend_btn = gr.Button(value="Recommend",interactive=True,elem_classes="function_button_rec")
|
| 1984 |
# focus_asso = gr.Button(value="Associate",interactive=True,elem_classes="function_button",variant="primary")
|
| 1985 |
-
with gr.Column(visible=False) as modules_not_need_gpt2:
|
| 1986 |
-
with gr.Blocks():
|
| 1987 |
-
chatbot = gr.Chatbot(label="Chatbox", elem_classes="chatbot",likeable=True,height=600,bubble_full_width=False)
|
| 1988 |
-
with gr.Column() as modules_need_gpt3:
|
| 1989 |
-
chat_input = gr.MultimodalTextbox(interactive=True, file_types=[".txt"], placeholder="Message EyeSee...", show_label=False)
|
| 1990 |
-
with gr.Row():
|
| 1991 |
-
clear_button_text = gr.Button(value="Clear Chat", interactive=True)
|
| 1992 |
-
export_button = gr.Button(value="Export Chat Log", interactive=True, variant="primary")
|
| 1993 |
-
with gr.Row(visible=False):
|
| 1994 |
-
with gr.Column():
|
| 1995 |
-
with gr.Row():
|
| 1996 |
-
click_mode = gr.Radio(
|
| 1997 |
-
choices=["Continuous", "Single"],
|
| 1998 |
-
value="Continuous",
|
| 1999 |
-
label="Clicking Mode",
|
| 2000 |
-
scale=5,
|
| 2001 |
-
interactive=True)
|
| 2002 |
-
|
| 2003 |
|
| 2004 |
|
| 2005 |
|
|
@@ -2048,11 +2031,11 @@ def create_ui():
|
|
| 2048 |
value="No",
|
| 2049 |
label="Expert",
|
| 2050 |
interactive=True)
|
| 2051 |
-
|
| 2052 |
-
|
| 2053 |
-
|
| 2054 |
-
|
| 2055 |
-
|
| 2056 |
|
| 2057 |
|
| 2058 |
with gr.Column(scale=4):
|
|
@@ -2075,6 +2058,23 @@ def create_ui():
|
|
| 2075 |
# with gr.Column(visible=False) as modules_need_gpt2:
|
| 2076 |
# paragraph_output = gr.Textbox(lines=16, label="Describe Everything", max_lines=16)
|
| 2077 |
# cap_everything_button = gr.Button(value="Caption Everything in a Paragraph", interactive=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2078 |
|
| 2079 |
|
| 2080 |
|
|
|
|
| 1924 |
|
| 1925 |
|
| 1926 |
with gr.Row():
|
| 1927 |
+
|
| 1928 |
with gr.Column(scale=6):
|
| 1929 |
with gr.Column(visible=False) as modules_not_need_gpt:
|
| 1930 |
with gr.Row():
|
|
|
|
| 1983 |
|
| 1984 |
recommend_btn = gr.Button(value="Recommend",interactive=True,elem_classes="function_button_rec")
|
| 1985 |
# focus_asso = gr.Button(value="Associate",interactive=True,elem_classes="function_button",variant="primary")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1986 |
|
| 1987 |
|
| 1988 |
|
|
|
|
| 2031 |
value="No",
|
| 2032 |
label="Expert",
|
| 2033 |
interactive=True)
|
| 2034 |
+
with gr.Column(visible=True) as modules_not_need_gpt3:
|
| 2035 |
+
gr.Examples(
|
| 2036 |
+
examples=examples,
|
| 2037 |
+
inputs=[example_image],
|
| 2038 |
+
)
|
| 2039 |
|
| 2040 |
|
| 2041 |
with gr.Column(scale=4):
|
|
|
|
| 2058 |
# with gr.Column(visible=False) as modules_need_gpt2:
|
| 2059 |
# paragraph_output = gr.Textbox(lines=16, label="Describe Everything", max_lines=16)
|
| 2060 |
# cap_everything_button = gr.Button(value="Caption Everything in a Paragraph", interactive=True)
|
| 2061 |
+
with gr.Column(visible=False) as modules_not_need_gpt2:
|
| 2062 |
+
with gr.Blocks():
|
| 2063 |
+
chatbot = gr.Chatbot(label="Chatbox", elem_classes="chatbot",likeable=True,height=600,bubble_full_width=False)
|
| 2064 |
+
with gr.Column() as modules_need_gpt3:
|
| 2065 |
+
chat_input = gr.MultimodalTextbox(interactive=True, file_types=[".txt"], placeholder="Message EyeSee...", show_label=False)
|
| 2066 |
+
with gr.Row():
|
| 2067 |
+
clear_button_text = gr.Button(value="Clear Chat", interactive=True)
|
| 2068 |
+
export_button = gr.Button(value="Export Chat Log", interactive=True, variant="primary")
|
| 2069 |
+
with gr.Row(visible=False):
|
| 2070 |
+
with gr.Column():
|
| 2071 |
+
with gr.Row():
|
| 2072 |
+
click_mode = gr.Radio(
|
| 2073 |
+
choices=["Continuous", "Single"],
|
| 2074 |
+
value="Continuous",
|
| 2075 |
+
label="Clicking Mode",
|
| 2076 |
+
scale=5,
|
| 2077 |
+
interactive=True)
|
| 2078 |
|
| 2079 |
|
| 2080 |
|