Spaces:
Sleeping
Sleeping
Allen Park
commited on
Commit
·
b084d79
1
Parent(s):
19b3d90
fix(get rid of css string & get rid of gr.row for question and answer)
Browse files
app.py
CHANGED
@@ -65,18 +65,6 @@ EXAMPLES = [
|
|
65 |
}
|
66 |
]
|
67 |
|
68 |
-
css = """
|
69 |
-
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700&display=swap');
|
70 |
-
|
71 |
-
body, .gradio-container {
|
72 |
-
font-family: 'Plus Jakarta Sans', sans-serif !important;
|
73 |
-
}
|
74 |
-
|
75 |
-
.fixed-height-button {
|
76 |
-
height: 150px;
|
77 |
-
}
|
78 |
-
"""
|
79 |
-
|
80 |
HEADER = """
|
81 |
# Patronus Lynx Demo
|
82 |
<table bgcolor="#1E2432" cellspacing="0" cellpadding="0" width="450">
|
@@ -209,8 +197,7 @@ with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("Plus Jakarta
|
|
209 |
model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B v1.1", "Patronus Lynx 70B"], value="Patronus Lynx 8B v1.1", label="Model", interactive=True)
|
210 |
with gr.Row():
|
211 |
with gr.Column(scale=1):
|
212 |
-
|
213 |
-
question = gr.Textbox(label="Question")
|
214 |
with gr.Row():
|
215 |
document = gr.Textbox(label="Document", scale=9)
|
216 |
u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1)
|
@@ -219,8 +206,7 @@ with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("Plus Jakarta
|
|
219 |
file_name = gr.Markdown("")
|
220 |
c = gr.ClearButton([u, file_name])
|
221 |
# d = gr.DownloadButton("Download the file", visible=False, scale=1)
|
222 |
-
|
223 |
-
answer = gr.Textbox(label="Answer")
|
224 |
with gr.Row():
|
225 |
clear_btn = gr.ClearButton([question, document, answer])
|
226 |
submit_button = gr.Button("Submit", variant="primary")
|
|
|
65 |
}
|
66 |
]
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
HEADER = """
|
69 |
# Patronus Lynx Demo
|
70 |
<table bgcolor="#1E2432" cellspacing="0" cellpadding="0" width="450">
|
|
|
197 |
model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B v1.1", "Patronus Lynx 70B"], value="Patronus Lynx 8B v1.1", label="Model", interactive=True)
|
198 |
with gr.Row():
|
199 |
with gr.Column(scale=1):
|
200 |
+
question = gr.Textbox(label="Question")
|
|
|
201 |
with gr.Row():
|
202 |
document = gr.Textbox(label="Document", scale=9)
|
203 |
u = gr.UploadButton("Upload", visible=True, file_count="single", file_types=UPLOADABLE_FILE_TYPES, scale=1)
|
|
|
206 |
file_name = gr.Markdown("")
|
207 |
c = gr.ClearButton([u, file_name])
|
208 |
# d = gr.DownloadButton("Download the file", visible=False, scale=1)
|
209 |
+
answer = gr.Textbox(label="Answer")
|
|
|
210 |
with gr.Row():
|
211 |
clear_btn = gr.ClearButton([question, document, answer])
|
212 |
submit_button = gr.Button("Submit", variant="primary")
|