Spaces:
Paused
Paused
themissingCRAM
commited on
Commit
·
53bccaa
1
Parent(s):
60a84d8
gradio
Browse files
app.py
CHANGED
|
@@ -80,7 +80,6 @@ class RetrieverTool(Tool):
|
|
| 80 |
for i, doc in zip(docs["ids"][0], docs["documents"][0])
|
| 81 |
]
|
| 82 |
)
|
| 83 |
-
return retrieved_text
|
| 84 |
messages = [
|
| 85 |
{
|
| 86 |
"role": "user",
|
|
@@ -147,7 +146,7 @@ if __name__ == "__main__":
|
|
| 147 |
|
| 148 |
with gr.Blocks() as b:
|
| 149 |
chatbot = gr.Chatbot(type="messages", height=1000)
|
| 150 |
-
textbox = gr.Textbox(lines=
|
| 151 |
value="pass me some fun general facts from the retreiver tool")
|
| 152 |
enter_button = gr.Button("enter")
|
| 153 |
stop_generating_button = gr.Button("stop generating")
|
|
|
|
| 80 |
for i, doc in zip(docs["ids"][0], docs["documents"][0])
|
| 81 |
]
|
| 82 |
)
|
|
|
|
| 83 |
messages = [
|
| 84 |
{
|
| 85 |
"role": "user",
|
|
|
|
| 146 |
|
| 147 |
with gr.Blocks() as b:
|
| 148 |
chatbot = gr.Chatbot(type="messages", height=1000)
|
| 149 |
+
textbox = gr.Textbox(lines=1, label="chat message (with default sample question)",
|
| 150 |
value="pass me some fun general facts from the retreiver tool")
|
| 151 |
enter_button = gr.Button("enter")
|
| 152 |
stop_generating_button = gr.Button("stop generating")
|