Update app.py
Browse files
app.py
CHANGED
@@ -190,13 +190,16 @@ def process_report(agent, file, messages: List[Dict[str, str]]) -> Tuple[List[Di
|
|
190 |
|
191 |
def create_ui(agent):
|
192 |
with gr.Blocks(css="""
|
193 |
-
html, body, .gradio-container {
|
|
|
|
|
194 |
.gr-button-primary {
|
195 |
-
background: linear-gradient(to
|
196 |
-
border:
|
|
|
197 |
}
|
198 |
.gr-button-primary:hover {
|
199 |
-
background: linear-gradient(to
|
200 |
}
|
201 |
""") as demo:
|
202 |
gr.Markdown("""
|
@@ -222,4 +225,4 @@ def create_ui(agent):
|
|
222 |
if __name__ == "__main__":
|
223 |
agent = init_agent()
|
224 |
ui = create_ui(agent)
|
225 |
-
ui.launch(server_name="0.0.0.0", server_port=7860, allowed_paths=["/data/hf_cache/reports"], share=False)
|
|
|
190 |
|
191 |
def create_ui(agent):
|
192 |
with gr.Blocks(css="""
|
193 |
+
html, body, .gradio-container {
|
194 |
+
background: #0e1621; color: #e0e0e0;
|
195 |
+
}
|
196 |
.gr-button-primary {
|
197 |
+
background: linear-gradient(to right, #2196f3, #1e88e5) !important;
|
198 |
+
border: 1px solid #1e88e5 !important;
|
199 |
+
color: white !important;
|
200 |
}
|
201 |
.gr-button-primary:hover {
|
202 |
+
background: linear-gradient(to right, #42a5f5, #1976d2) !important;
|
203 |
}
|
204 |
""") as demo:
|
205 |
gr.Markdown("""
|
|
|
225 |
if __name__ == "__main__":
|
226 |
agent = init_agent()
|
227 |
ui = create_ui(agent)
|
228 |
+
ui.launch(server_name="0.0.0.0", server_port=7860, allowed_paths=["/data/hf_cache/reports"], share=False)
|