Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from
|
| 3 |
|
| 4 |
-
app = gr.ChatInterface(
|
| 5 |
chatbot=gr.Chatbot(height=400),
|
| 6 |
type = "messages",
|
| 7 |
-
textbox=gr.Textbox(placeholder="
|
| 8 |
-
title="
|
| 9 |
theme="upsatwal/mlsc_tiet",
|
| 10 |
-
examples=["What
|
| 11 |
-
"What is the
|
| 12 |
-
"
|
| 13 |
|
| 14 |
if __name__ == "__main__":
|
| 15 |
-
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from retriever import retriever
|
| 3 |
|
| 4 |
+
app = gr.ChatInterface(retriever,
|
| 5 |
chatbot=gr.Chatbot(height=400),
|
| 6 |
type = "messages",
|
| 7 |
+
textbox=gr.Textbox(placeholder="Type your message here", container=False, scale=7),
|
| 8 |
+
title="Cache Augmented Generation System",
|
| 9 |
theme="upsatwal/mlsc_tiet",
|
| 10 |
+
examples=["What position was applied for at DAME?",
|
| 11 |
+
"What is the date of the application to ACLED?",
|
| 12 |
+
"Summarize the application to Nansen in 5 bullet points."])
|
| 13 |
|
| 14 |
if __name__ == "__main__":
|
| 15 |
+
app.launch()
|