Spaces:
Sleeping
Sleeping
changed class interface
Browse files
app.py
CHANGED
@@ -1,14 +1,6 @@
|
|
1 |
from backend import handle_query
|
2 |
import gradio as gr
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
iface = gr.ChatInterface(
|
7 |
-
fn=handle_query, # Query handling remains here
|
8 |
-
title="Odi, la chatbot degli Osservatori",
|
9 |
-
description="Retrieval-Augmented Generation - Ask me anything about the research carried out at the Osservatori.",
|
10 |
-
)
|
11 |
-
|
12 |
css = """
|
13 |
body, html, .gradio-app {
|
14 |
background-color: #ADD8E6 !important; /* Light blue background */
|
@@ -16,6 +8,13 @@ body, html, .gradio-app {
|
|
16 |
}
|
17 |
"""
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
if __name__ == "__main__":
|
20 |
progress = gr.Progress(track_tqdm=True)
|
21 |
-
iface.launch(debug=True
|
|
|
1 |
from backend import handle_query
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
css = """
|
5 |
body, html, .gradio-app {
|
6 |
background-color: #ADD8E6 !important; /* Light blue background */
|
|
|
8 |
}
|
9 |
"""
|
10 |
|
11 |
+
with gr.Blocks(css=css) as iface:
|
12 |
+
gr.ChatInterface(
|
13 |
+
fn=handle_query, # Query handling remains here
|
14 |
+
title="Odi, la chatbot degli Osservatori",
|
15 |
+
description="Retrieval-Augmented Generation - Ask me anything about the research carried out at the Osservatori.",
|
16 |
+
)
|
17 |
+
|
18 |
if __name__ == "__main__":
|
19 |
progress = gr.Progress(track_tqdm=True)
|
20 |
+
iface.launch(debug=True)
|