Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -289,42 +289,45 @@ custom_css = """
|
|
289 |
|
290 |
.features-grid {
|
291 |
display: grid;
|
292 |
-
grid-template-columns: repeat(auto-fit, minmax(
|
293 |
-
gap:
|
294 |
-
margin:
|
295 |
}
|
296 |
|
297 |
.feature-card {
|
298 |
background: white;
|
299 |
-
padding:
|
300 |
-
border-radius:
|
301 |
-
box-shadow: 0
|
302 |
transition: all 0.3s ease;
|
303 |
border: 1px solid var(--border-color);
|
|
|
304 |
}
|
305 |
|
306 |
.feature-card:hover {
|
307 |
-
transform: translateY(-
|
308 |
-
box-shadow: 0
|
309 |
border-color: var(--primary-color);
|
310 |
}
|
311 |
|
312 |
.feature-icon {
|
313 |
-
font-size:
|
314 |
-
margin-bottom:
|
315 |
color: var(--primary-color);
|
316 |
}
|
317 |
|
318 |
.feature-card h3 {
|
319 |
color: var(--text-color);
|
320 |
-
margin:
|
321 |
-
font-size:
|
|
|
322 |
}
|
323 |
|
324 |
.feature-card p {
|
325 |
color: #666;
|
326 |
-
font-size: 0.
|
327 |
-
line-height: 1.
|
|
|
328 |
}
|
329 |
|
330 |
.features-summary {
|
@@ -502,80 +505,47 @@ with gr.Blocks(title="Advanced Text Processing with Qwen", css=custom_css, theme
|
|
502 |
<div class="feature-card">
|
503 |
<div class="feature-icon">🔄</div>
|
504 |
<h3>Text Similarity</h3>
|
505 |
-
<p>Compare
|
506 |
</div>
|
507 |
<div class="feature-card">
|
508 |
<div class="feature-icon">🔍</div>
|
509 |
<h3>Semantic Search</h3>
|
510 |
-
<p>Find relevant
|
511 |
</div>
|
512 |
<div class="feature-card">
|
513 |
<div class="feature-icon">📊</div>
|
514 |
<h3>Batch Analysis</h3>
|
515 |
-
<p>Process multiple texts
|
516 |
</div>
|
517 |
<div class="feature-card">
|
518 |
<div class="feature-icon">🎯</div>
|
519 |
-
<h3>Multi-Query
|
520 |
-
<p>
|
521 |
</div>
|
522 |
<div class="feature-card">
|
523 |
<div class="feature-icon">🌐</div>
|
524 |
<h3>Cross-Lingual</h3>
|
525 |
-
<p>
|
526 |
</div>
|
527 |
<div class="feature-card">
|
528 |
<div class="feature-icon">🏷️</div>
|
529 |
-
<h3>
|
530 |
-
<p>Categorize
|
531 |
</div>
|
532 |
<div class="feature-card">
|
533 |
<div class="feature-icon">🔮</div>
|
534 |
-
<h3>
|
535 |
-
<p>Group
|
536 |
</div>
|
537 |
<div class="feature-card">
|
538 |
<div class="feature-icon">😊</div>
|
539 |
-
<h3>Sentiment
|
540 |
-
<p>Analyze
|
541 |
</div>
|
542 |
<div class="feature-card">
|
543 |
<div class="feature-icon">🎨</div>
|
544 |
-
<h3>
|
545 |
-
<p>
|
546 |
-
</div>
|
547 |
-
</div>
|
548 |
-
|
549 |
-
<div class="features-summary">
|
550 |
-
<h2>Advanced Features</h2>
|
551 |
-
<div class="feature-list">
|
552 |
-
<div class="feature-group">
|
553 |
-
<h3>Text Analysis</h3>
|
554 |
-
<ul>
|
555 |
-
<li>Semantic similarity scoring</li>
|
556 |
-
<li>Cross-language understanding</li>
|
557 |
-
<li>Batch text processing</li>
|
558 |
-
<li>Emotion detection</li>
|
559 |
-
</ul>
|
560 |
-
</div>
|
561 |
-
<div class="feature-group">
|
562 |
-
<h3>Document Processing</h3>
|
563 |
-
<ul>
|
564 |
-
<li>Smart document search</li>
|
565 |
-
<li>Automated clustering</li>
|
566 |
-
<li>Theme extraction</li>
|
567 |
-
<li>Content categorization</li>
|
568 |
-
</ul>
|
569 |
-
</div>
|
570 |
-
<div class="feature-group">
|
571 |
-
<h3>Model Configuration</h3>
|
572 |
-
<ul>
|
573 |
-
<li>Adjustable embedding dimensions</li>
|
574 |
-
<li>GPU acceleration support</li>
|
575 |
-
<li>Batch size optimization</li>
|
576 |
-
<li>Multi-language support</li>
|
577 |
-
</ul>
|
578 |
-
</div>
|
579 |
</div>
|
580 |
</div>
|
581 |
""")
|
|
|
289 |
|
290 |
.features-grid {
|
291 |
display: grid;
|
292 |
+
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
293 |
+
gap: 15px;
|
294 |
+
margin: 15px 0;
|
295 |
}
|
296 |
|
297 |
.feature-card {
|
298 |
background: white;
|
299 |
+
padding: 15px;
|
300 |
+
border-radius: 6px;
|
301 |
+
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
302 |
transition: all 0.3s ease;
|
303 |
border: 1px solid var(--border-color);
|
304 |
+
text-align: center;
|
305 |
}
|
306 |
|
307 |
.feature-card:hover {
|
308 |
+
transform: translateY(-3px);
|
309 |
+
box-shadow: 0 3px 6px rgba(0,0,0,0.15);
|
310 |
border-color: var(--primary-color);
|
311 |
}
|
312 |
|
313 |
.feature-icon {
|
314 |
+
font-size: 24px;
|
315 |
+
margin-bottom: 10px;
|
316 |
color: var(--primary-color);
|
317 |
}
|
318 |
|
319 |
.feature-card h3 {
|
320 |
color: var(--text-color);
|
321 |
+
margin: 8px 0;
|
322 |
+
font-size: 0.95em;
|
323 |
+
font-weight: 600;
|
324 |
}
|
325 |
|
326 |
.feature-card p {
|
327 |
color: #666;
|
328 |
+
font-size: 0.8em;
|
329 |
+
line-height: 1.3;
|
330 |
+
margin: 5px 0;
|
331 |
}
|
332 |
|
333 |
.features-summary {
|
|
|
505 |
<div class="feature-card">
|
506 |
<div class="feature-icon">🔄</div>
|
507 |
<h3>Text Similarity</h3>
|
508 |
+
<p>Compare text meanings</p>
|
509 |
</div>
|
510 |
<div class="feature-card">
|
511 |
<div class="feature-icon">🔍</div>
|
512 |
<h3>Semantic Search</h3>
|
513 |
+
<p>Find relevant docs</p>
|
514 |
</div>
|
515 |
<div class="feature-card">
|
516 |
<div class="feature-icon">📊</div>
|
517 |
<h3>Batch Analysis</h3>
|
518 |
+
<p>Process multiple texts</p>
|
519 |
</div>
|
520 |
<div class="feature-card">
|
521 |
<div class="feature-icon">🎯</div>
|
522 |
+
<h3>Multi-Query</h3>
|
523 |
+
<p>Advanced retrieval</p>
|
524 |
</div>
|
525 |
<div class="feature-card">
|
526 |
<div class="feature-icon">🌐</div>
|
527 |
<h3>Cross-Lingual</h3>
|
528 |
+
<p>Cross-language match</p>
|
529 |
</div>
|
530 |
<div class="feature-card">
|
531 |
<div class="feature-icon">🏷️</div>
|
532 |
+
<h3>Classification</h3>
|
533 |
+
<p>Categorize texts</p>
|
534 |
</div>
|
535 |
<div class="feature-card">
|
536 |
<div class="feature-icon">🔮</div>
|
537 |
+
<h3>Clustering</h3>
|
538 |
+
<p>Group documents</p>
|
539 |
</div>
|
540 |
<div class="feature-card">
|
541 |
<div class="feature-icon">😊</div>
|
542 |
+
<h3>Sentiment</h3>
|
543 |
+
<p>Analyze emotions</p>
|
544 |
</div>
|
545 |
<div class="feature-card">
|
546 |
<div class="feature-icon">🎨</div>
|
547 |
+
<h3>Concepts</h3>
|
548 |
+
<p>Extract themes</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
549 |
</div>
|
550 |
</div>
|
551 |
""")
|