Spaces:
Running on Zero
Running on Zero
markrodrigo commited on
Commit ·
0014e74
1
Parent(s): 132a2da
test
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ def respond(user_message, chat_history): # , counter):
|
|
| 99 |
bot_response = sequences[0]["generated_text"].strip()
|
| 100 |
chat_history[-1]["content"] = bot_response
|
| 101 |
|
| 102 |
-
return chat_history, "" # , counter
|
| 103 |
|
| 104 |
|
| 105 |
|
|
@@ -136,7 +136,8 @@ with gr.Blocks(title="Text to PostGIS Postgresql via Llama 3.2", css=custom_css)
|
|
| 136 |
|
| 137 |
clear_btn = gr.Button("Clear Chat", elem_id="clear-chat-btn")
|
| 138 |
clear_btn.click(lambda: ([], ""), outputs=[chatbot, msg])
|
| 139 |
-
|
|
|
|
| 140 |
# Display counter (optional)
|
| 141 |
|
| 142 |
|
|
|
|
| 99 |
bot_response = sequences[0]["generated_text"].strip()
|
| 100 |
chat_history[-1]["content"] = bot_response
|
| 101 |
|
| 102 |
+
return chat_history, "", global_counter # , counter
|
| 103 |
|
| 104 |
|
| 105 |
|
|
|
|
| 136 |
|
| 137 |
clear_btn = gr.Button("Clear Chat", elem_id="clear-chat-btn")
|
| 138 |
clear_btn.click(lambda: ([], ""), outputs=[chatbot, msg])
|
| 139 |
+
gr.Markdown("## 🚀 Space Request Tracker")
|
| 140 |
+
gr.Textbox(value=str(global_counter), interactive=False)
|
| 141 |
# Display counter (optional)
|
| 142 |
|
| 143 |
|