Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ load_dotenv()
|
|
| 26 |
# ---------- Config ----------
|
| 27 |
AI_NAME = "LuminAI"
|
| 28 |
KB_GLOB = "kb/*.txt"
|
| 29 |
-
DEFAULT_REPLY = "Lo siento, no tengo esta respuesta
|
| 30 |
|
| 31 |
# Model IDs (puedes cambiarlos)
|
| 32 |
SD_TXT2IMG_ID = "runwayml/stable-diffusion-v1-5"
|
|
@@ -402,7 +402,7 @@ with gr.Blocks(css=CUSTOM_CSS, theme=gr.themes.Soft()) as demo:
|
|
| 402 |
gr.Markdown("Hazme una pregunta o crea/edita imágenes. Adjunta archivos, habla por micrófono o usa la cámara.")
|
| 403 |
|
| 404 |
with gr.Tab("Chat"):
|
| 405 |
-
chatbot = gr.Chatbot(
|
| 406 |
with gr.Column():
|
| 407 |
with gr.Row(elem_id="input_row"):
|
| 408 |
attach_files = gr.File(label="Adjuntar", file_count="multiple", visible=True)
|
|
@@ -482,4 +482,4 @@ if __name__ == "__main__":
|
|
| 482 |
# server_name="127.0.0.1" → corre en tu PC
|
| 483 |
# server_port=7860 → puerto donde abre la app
|
| 484 |
# share=True → genera link público temporal (gradio.live)
|
| 485 |
-
demo.launch(
|
|
|
|
| 26 |
# ---------- Config ----------
|
| 27 |
AI_NAME = "LuminAI"
|
| 28 |
KB_GLOB = "kb/*.txt"
|
| 29 |
+
DEFAULT_REPLY = "Lo siento, no tengo esta respuesta en mi sistema."
|
| 30 |
|
| 31 |
# Model IDs (puedes cambiarlos)
|
| 32 |
SD_TXT2IMG_ID = "runwayml/stable-diffusion-v1-5"
|
|
|
|
| 402 |
gr.Markdown("Hazme una pregunta o crea/edita imágenes. Adjunta archivos, habla por micrófono o usa la cámara.")
|
| 403 |
|
| 404 |
with gr.Tab("Chat"):
|
| 405 |
+
chatbot = gr.Chatbot(label="Chatbot")
|
| 406 |
with gr.Column():
|
| 407 |
with gr.Row(elem_id="input_row"):
|
| 408 |
attach_files = gr.File(label="Adjuntar", file_count="multiple", visible=True)
|
|
|
|
| 482 |
# server_name="127.0.0.1" → corre en tu PC
|
| 483 |
# server_port=7860 → puerto donde abre la app
|
| 484 |
# share=True → genera link público temporal (gradio.live)
|
| 485 |
+
demo.launch(share=True)
|