Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,60 @@ def infer(question):
|
|
49 |
|
50 |
css="""
|
51 |
#col-container {max-width: 700px; margin-left: auto; margin-right: auto;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
"""
|
53 |
|
54 |
title ="""
|
|
|
49 |
|
50 |
css="""
|
51 |
#col-container {max-width: 700px; margin-left: auto; margin-right: auto;}
|
52 |
+
#col-container {
|
53 |
+
max-width: 700px;
|
54 |
+
margin-left: auto;
|
55 |
+
margin-right: auto;
|
56 |
+
}
|
57 |
+
|
58 |
+
.title {
|
59 |
+
text-align: center;
|
60 |
+
max-width: 700px;
|
61 |
+
color: #000;
|
62 |
+
}
|
63 |
+
|
64 |
+
.pdf-doc {
|
65 |
+
margin-bottom: 10px;
|
66 |
+
}
|
67 |
+
|
68 |
+
.repo-id {
|
69 |
+
margin-bottom: 10px;
|
70 |
+
}
|
71 |
+
|
72 |
+
.langchain-status {
|
73 |
+
margin-bottom: 10px;
|
74 |
+
}
|
75 |
+
|
76 |
+
.load-pdf {
|
77 |
+
margin-bottom: 10px;
|
78 |
+
}
|
79 |
+
|
80 |
+
.chatbot {
|
81 |
+
height: 350px;
|
82 |
+
border: 1px solid #ccc;
|
83 |
+
padding: 10px;
|
84 |
+
}
|
85 |
+
|
86 |
+
.question {
|
87 |
+
margin-bottom: 10px;
|
88 |
+
}
|
89 |
+
|
90 |
+
.submit-btn {
|
91 |
+
margin-bottom: 10px;
|
92 |
+
}
|
93 |
+
|
94 |
+
.chatbot .message {
|
95 |
+
color: #000;
|
96 |
+
font-size: 16px;
|
97 |
+
}
|
98 |
+
|
99 |
+
.chatbot .user-message {
|
100 |
+
background-color: #eee;
|
101 |
+
}
|
102 |
+
|
103 |
+
.chatbot .bot-message {
|
104 |
+
background-color: #ccc;
|
105 |
+
}
|
106 |
"""
|
107 |
|
108 |
title ="""
|