Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -109,6 +109,12 @@ custom_css = """
|
|
109 |
padding: 15px !important;
|
110 |
border-radius: 10px !important;
|
111 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
.gr-box {
|
113 |
border-radius: 10px !important;
|
114 |
border: 2px solid #ff4081 !important;
|
@@ -123,6 +129,12 @@ custom_css = """
|
|
123 |
padding: 15px !important;
|
124 |
border-radius: 10px !important;
|
125 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
.image-background {
|
127 |
border-radius: 10px !important;
|
128 |
border: 2px solid #B7E0FF !important;
|
@@ -146,7 +158,7 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css=custom_css) as demo:
|
|
146 |
with gr.Row():
|
147 |
question_input = gr.Textbox(label="請輸入您的問題", placeholder="例如:What is in this image?", scale=2, elem_classes="input-background")
|
148 |
api_key_input = gr.Textbox(type="password", label="請輸入您的 API Key", placeholder="API authentication key for large language models", scale=1, elem_classes="api-background")
|
149 |
-
output = gr.Textbox(label="Vision Model 回覆", elem_classes="output-background"
|
150 |
with gr.Row():
|
151 |
submit_button = gr.Button("傳送", variant="primary", scale=2, elem_classes="gen-button")
|
152 |
clear_button = gr.Button("清除", variant="secondary", scale=1, elem_classes="clear-button")
|
|
|
109 |
padding: 15px !important;
|
110 |
border-radius: 10px !important;
|
111 |
}
|
112 |
+
.input-background textarea {
|
113 |
+
font-size: 18px !important;
|
114 |
+
background-color: #ffffff;
|
115 |
+
border: 1px solid #f0f8ff;
|
116 |
+
border-radius: 8px;
|
117 |
+
}
|
118 |
.gr-box {
|
119 |
border-radius: 10px !important;
|
120 |
border: 2px solid #ff4081 !important;
|
|
|
129 |
padding: 15px !important;
|
130 |
border-radius: 10px !important;
|
131 |
}
|
132 |
+
.output-background textarea {
|
133 |
+
font-size: 18px !important;
|
134 |
+
background-color: #ffffff;
|
135 |
+
border: 1px solid #f0f8ff;
|
136 |
+
border-radius: 8px;
|
137 |
+
}
|
138 |
.image-background {
|
139 |
border-radius: 10px !important;
|
140 |
border: 2px solid #B7E0FF !important;
|
|
|
158 |
with gr.Row():
|
159 |
question_input = gr.Textbox(label="請輸入您的問題", placeholder="例如:What is in this image?", scale=2, elem_classes="input-background")
|
160 |
api_key_input = gr.Textbox(type="password", label="請輸入您的 API Key", placeholder="API authentication key for large language models", scale=1, elem_classes="api-background")
|
161 |
+
output = gr.Textbox(label="Vision Model 回覆", interactive=False, max_lines=20, elem_classes="output-background")
|
162 |
with gr.Row():
|
163 |
submit_button = gr.Button("傳送", variant="primary", scale=2, elem_classes="gen-button")
|
164 |
clear_button = gr.Button("清除", variant="secondary", scale=1, elem_classes="clear-button")
|