Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ import os
|
|
| 14 |
|
| 15 |
# os.environ.get()
|
| 16 |
# Configuration - Get API key from environment variables
|
| 17 |
-
GEMINI_API_KEY = "
|
| 18 |
MODEL_NAME = "all-MiniLM-L6-v2"
|
| 19 |
CHUNK_SIZE = 1024
|
| 20 |
MAX_TOKENS = 4096
|
|
@@ -188,7 +188,7 @@ processor = DocumentProcessor()
|
|
| 188 |
|
| 189 |
# Gradio interface with improved error handling
|
| 190 |
with gr.Blocks(theme=gr.themes.Soft(), title="Document Chatbot") as app:
|
| 191 |
-
gr.Markdown("##
|
| 192 |
|
| 193 |
with gr.Row():
|
| 194 |
with gr.Column(scale=2):
|
|
|
|
| 14 |
|
| 15 |
# os.environ.get()
|
| 16 |
# Configuration - Get API key from environment variables
|
| 17 |
+
GEMINI_API_KEY = "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"
|
| 18 |
MODEL_NAME = "all-MiniLM-L6-v2"
|
| 19 |
CHUNK_SIZE = 1024
|
| 20 |
MAX_TOKENS = 4096
|
|
|
|
| 188 |
|
| 189 |
# Gradio interface with improved error handling
|
| 190 |
with gr.Blocks(theme=gr.themes.Soft(), title="Document Chatbot") as app:
|
| 191 |
+
gr.Markdown("## Multi-Format Document Chatbot")
|
| 192 |
|
| 193 |
with gr.Row():
|
| 194 |
with gr.Column(scale=2):
|