Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
from langchain.text_splitter import CharacterTextSplitter
|
3 |
from sentence_transformers import SentenceTransformer
|
@@ -137,7 +138,7 @@ with gr.Blocks() as app:
|
|
137 |
with gr.Column(scale=1, min_width=250):
|
138 |
gr.Markdown("""
|
139 |
<div style="background: linear-gradient(145deg, #6e7dff, #1c2b58); padding: 30px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); font-family: 'Roboto', sans-serif;">
|
140 |
-
<h2 style="
|
141 |
<p style="color: #ddd; font-size: 18px;">Welcome to DocAI! Upload your documents and get intelligent answers based on their content.</p>
|
142 |
<p style="color: #ddd; font-size: 16px; line-height: 1.6;"><strong>Steps to use:</strong></p>
|
143 |
<ul style="color: #ddd; font-size: 16px; line-height: 1.6;">
|
@@ -154,7 +155,7 @@ with gr.Blocks() as app:
|
|
154 |
with gr.Column(scale=2, min_width=600):
|
155 |
gr.Markdown("""
|
156 |
<div style="background: linear-gradient(135deg, #6e7dff, #1c2b58); padding: 20px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); font-family: 'Roboto', sans-serif;">
|
157 |
-
<h2 style="
|
158 |
Ask Your Document
|
159 |
</h2>
|
160 |
<p style="color: #ddd; font-size: 18px; text-align: center; line-height: 1.6;">
|
|
|
1 |
+
|
2 |
import gradio as gr
|
3 |
from langchain.text_splitter import CharacterTextSplitter
|
4 |
from sentence_transformers import SentenceTransformer
|
|
|
138 |
with gr.Column(scale=1, min_width=250):
|
139 |
gr.Markdown("""
|
140 |
<div style="background: linear-gradient(145deg, #6e7dff, #1c2b58); padding: 30px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); font-family: 'Roboto', sans-serif;">
|
141 |
+
<h2 style="color: #fff; font-size: 32px; font-weight: bold;">DocAI: Document Assistant</h2>
|
142 |
<p style="color: #ddd; font-size: 18px;">Welcome to DocAI! Upload your documents and get intelligent answers based on their content.</p>
|
143 |
<p style="color: #ddd; font-size: 16px; line-height: 1.6;"><strong>Steps to use:</strong></p>
|
144 |
<ul style="color: #ddd; font-size: 16px; line-height: 1.6;">
|
|
|
155 |
with gr.Column(scale=2, min_width=600):
|
156 |
gr.Markdown("""
|
157 |
<div style="background: linear-gradient(135deg, #6e7dff, #1c2b58); padding: 20px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); font-family: 'Roboto', sans-serif;">
|
158 |
+
<h2 style="color: #fff; font-size: 36px; font-weight: bold; text-align: center; letter-spacing: 2px; text-transform: uppercase;">
|
159 |
Ask Your Document
|
160 |
</h2>
|
161 |
<p style="color: #ddd; font-size: 18px; text-align: center; line-height: 1.6;">
|