Spaces:
Sleeping
Sleeping
Commit
·
baec1d5
1
Parent(s):
595672d
commit
Browse files- app.py +1 -1
- interactions.log +12 -0
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def predict(message, history):
|
|
| 75 |
history_transformer_format = history + [[message, ""]]
|
| 76 |
for item in history_transformer_format:
|
| 77 |
context += f"\n\n{item[0]}"
|
| 78 |
-
|
| 79 |
resolucion_mejorada, context = mejorar_resolucion(context, message, API_URL, headers, max_length=1000)
|
| 80 |
if resolucion_mejorada:
|
| 81 |
history.append([message, resolucion_mejorada])
|
|
|
|
| 75 |
history_transformer_format = history + [[message, ""]]
|
| 76 |
for item in history_transformer_format:
|
| 77 |
context += f"\n\n{item[0]}"
|
| 78 |
+
|
| 79 |
resolucion_mejorada, context = mejorar_resolucion(context, message, API_URL, headers, max_length=1000)
|
| 80 |
if resolucion_mejorada:
|
| 81 |
history.append([message, resolucion_mejorada])
|
interactions.log
CHANGED
|
@@ -92,3 +92,15 @@ Soy un asistente legal especializado en derecho chileno, capacitado para optimiz
|
|
| 92 |
2024-07-06 16:49:07,307 - INFO - HTTP Request: GET http://localhost:7860/startup-events "HTTP/1.1 200 OK"
|
| 93 |
2024-07-06 16:49:07,318 - INFO - HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK"
|
| 94 |
2024-07-06 16:49:07,359 - INFO - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
2024-07-06 16:49:07,307 - INFO - HTTP Request: GET http://localhost:7860/startup-events "HTTP/1.1 200 OK"
|
| 93 |
2024-07-06 16:49:07,318 - INFO - HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK"
|
| 94 |
2024-07-06 16:49:07,359 - INFO - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
|
| 95 |
+
2024-07-06 16:58:06,027 - INFO - HTTP Request: GET https://checkip.amazonaws.com/ "HTTP/1.1 200 "
|
| 96 |
+
2024-07-06 16:58:06,272 - INFO - HTTP Request: GET http://localhost:7860/startup-events "HTTP/1.1 200 OK"
|
| 97 |
+
2024-07-06 16:58:06,277 - INFO - HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK"
|
| 98 |
+
2024-07-06 16:58:06,324 - INFO - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
|
| 99 |
+
2024-07-06 16:58:37,756 - INFO - HTTP Request: GET https://checkip.amazonaws.com/ "HTTP/1.1 200 "
|
| 100 |
+
2024-07-06 16:58:37,968 - INFO - HTTP Request: GET http://localhost:7860/startup-events "HTTP/1.1 200 OK"
|
| 101 |
+
2024-07-06 16:58:37,972 - INFO - HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK"
|
| 102 |
+
2024-07-06 16:58:38,112 - INFO - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
|
| 103 |
+
2024-07-06 17:13:48,778 - INFO - HTTP Request: GET https://checkip.amazonaws.com/ "HTTP/1.1 200 "
|
| 104 |
+
2024-07-06 17:13:48,933 - INFO - HTTP Request: GET http://localhost:7860/startup-events "HTTP/1.1 200 OK"
|
| 105 |
+
2024-07-06 17:13:48,938 - INFO - HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK"
|
| 106 |
+
2024-07-06 17:13:49,084 - INFO - HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
|