Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,13 +33,16 @@ from urllib.parse import quote
|
|
| 33 |
# βββββββββββββ EXTERNAL HELP LINKS (Always visible in sidebar) βββββββββββββ
|
| 34 |
# =============================================================================
|
| 35 |
external_links = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
{"title": "MergeKit Official GitHub", "url": "https://github.com/arcee-ai/MergeKit", "emoji": "π»"},
|
| 37 |
{"title": "MergeKit Sample Usage", "url": "https://github.com/arcee-ai/MergeKit#examples", "emoji": "π"},
|
| 38 |
{"title": "DistillKit Official GitHub", "url": "https://github.com/arcee-ai/DistillKit", "emoji": "π»"},
|
| 39 |
-
{"title": "DistillKit Announcing Blog Post", "url": "https://arcee.ai/blog/distillkit-announcement", "emoji": "βοΈ"},
|
| 40 |
{"title": "DistillKit Sample Usage", "url": "https://github.com/arcee-ai/DistillKit#usage", "emoji": "π"},
|
| 41 |
-
{"title": "Spectrum Hugging Face Blog Post", "url": "https://huggingface.co/blog/spectrum", "emoji": "βοΈ"},
|
| 42 |
-
{"title": "Hugging Face Model Merging Docs", "url": "https://huggingface.co/docs/peft/model_merging", "emoji": "π"},
|
| 43 |
{"title": "arcee.ai Official Website", "url": "https://arcee.ai", "emoji": "π"},
|
| 44 |
]
|
| 45 |
|
|
@@ -1331,207 +1334,4 @@ def main():
|
|
| 1331 |
show_sidebar_data_grid()
|
| 1332 |
|
| 1333 |
if __name__ == "__main__":
|
| 1334 |
-
main()
|
| 1335 |
-
|
| 1336 |
-
|
| 1337 |
-
# =============================================================================
|
| 1338 |
-
# βββββββββββββ Additional Blank Lines for Spacing (~1500 lines total) βββββββββββββ
|
| 1339 |
-
#
|
| 1340 |
-
#
|
| 1341 |
-
#
|
| 1342 |
-
#
|
| 1343 |
-
#
|
| 1344 |
-
#
|
| 1345 |
-
#
|
| 1346 |
-
#
|
| 1347 |
-
#
|
| 1348 |
-
#
|
| 1349 |
-
#
|
| 1350 |
-
#
|
| 1351 |
-
#
|
| 1352 |
-
#
|
| 1353 |
-
#
|
| 1354 |
-
#
|
| 1355 |
-
#
|
| 1356 |
-
#
|
| 1357 |
-
#
|
| 1358 |
-
#
|
| 1359 |
-
#
|
| 1360 |
-
#
|
| 1361 |
-
#
|
| 1362 |
-
#
|
| 1363 |
-
#
|
| 1364 |
-
#
|
| 1365 |
-
#
|
| 1366 |
-
#
|
| 1367 |
-
#
|
| 1368 |
-
#
|
| 1369 |
-
#
|
| 1370 |
-
#
|
| 1371 |
-
#
|
| 1372 |
-
#
|
| 1373 |
-
#
|
| 1374 |
-
#
|
| 1375 |
-
#
|
| 1376 |
-
#
|
| 1377 |
-
#
|
| 1378 |
-
#
|
| 1379 |
-
#
|
| 1380 |
-
#
|
| 1381 |
-
#
|
| 1382 |
-
#
|
| 1383 |
-
#
|
| 1384 |
-
#
|
| 1385 |
-
#
|
| 1386 |
-
#
|
| 1387 |
-
#
|
| 1388 |
-
#
|
| 1389 |
-
#
|
| 1390 |
-
#
|
| 1391 |
-
#
|
| 1392 |
-
#
|
| 1393 |
-
#
|
| 1394 |
-
#
|
| 1395 |
-
#
|
| 1396 |
-
#
|
| 1397 |
-
#
|
| 1398 |
-
#
|
| 1399 |
-
#
|
| 1400 |
-
#
|
| 1401 |
-
#
|
| 1402 |
-
#
|
| 1403 |
-
#
|
| 1404 |
-
#
|
| 1405 |
-
#
|
| 1406 |
-
#
|
| 1407 |
-
#
|
| 1408 |
-
#
|
| 1409 |
-
#
|
| 1410 |
-
#
|
| 1411 |
-
#
|
| 1412 |
-
#
|
| 1413 |
-
#
|
| 1414 |
-
#
|
| 1415 |
-
#
|
| 1416 |
-
#
|
| 1417 |
-
#
|
| 1418 |
-
#
|
| 1419 |
-
#
|
| 1420 |
-
#
|
| 1421 |
-
#
|
| 1422 |
-
#
|
| 1423 |
-
#
|
| 1424 |
-
#
|
| 1425 |
-
#
|
| 1426 |
-
#
|
| 1427 |
-
#
|
| 1428 |
-
#
|
| 1429 |
-
#
|
| 1430 |
-
#
|
| 1431 |
-
#
|
| 1432 |
-
#
|
| 1433 |
-
#
|
| 1434 |
-
#
|
| 1435 |
-
#
|
| 1436 |
-
#
|
| 1437 |
-
#
|
| 1438 |
-
#
|
| 1439 |
-
#
|
| 1440 |
-
#
|
| 1441 |
-
#
|
| 1442 |
-
#
|
| 1443 |
-
#
|
| 1444 |
-
#
|
| 1445 |
-
#
|
| 1446 |
-
#
|
| 1447 |
-
#
|
| 1448 |
-
#
|
| 1449 |
-
#
|
| 1450 |
-
#
|
| 1451 |
-
#
|
| 1452 |
-
#
|
| 1453 |
-
#
|
| 1454 |
-
#
|
| 1455 |
-
#
|
| 1456 |
-
#
|
| 1457 |
-
#
|
| 1458 |
-
#
|
| 1459 |
-
#
|
| 1460 |
-
#
|
| 1461 |
-
#
|
| 1462 |
-
#
|
| 1463 |
-
# =============================================================================
|
| 1464 |
-
# βββββββββββββ OPTIONAL FEATURES (New RunAI / Arxiv Search & Voice UI) βββββββββββββ
|
| 1465 |
-
# The following block includes the optional ARXIV/RunAI functions (copied from the second app).
|
| 1466 |
-
# Uncomment and enable as desired.
|
| 1467 |
-
#
|
| 1468 |
-
# import streamlit as st
|
| 1469 |
-
# import anthropic
|
| 1470 |
-
# import openai
|
| 1471 |
-
# import base64
|
| 1472 |
-
# import cv2
|
| 1473 |
-
# import glob
|
| 1474 |
-
# import json
|
| 1475 |
-
# import math
|
| 1476 |
-
# import os
|
| 1477 |
-
# import pytz
|
| 1478 |
-
# import random
|
| 1479 |
-
# import re
|
| 1480 |
-
# import requests
|
| 1481 |
-
# # import textract
|
| 1482 |
-
# import time
|
| 1483 |
-
# import zipfile
|
| 1484 |
-
# import plotly.graph_objects as go
|
| 1485 |
-
# import streamlit.components.v1 as components
|
| 1486 |
-
# from datetime import datetime
|
| 1487 |
-
# from audio_recorder_streamlit import audio_recorder
|
| 1488 |
-
# from bs4 import BeautifulSoup
|
| 1489 |
-
# from collections import defaultdict, deque, Counter
|
| 1490 |
-
# from dotenv import load_dotenv
|
| 1491 |
-
# from gradio_client import Client
|
| 1492 |
-
# from huggingface_hub import InferenceClient
|
| 1493 |
-
# from io import BytesIO
|
| 1494 |
-
# from PIL import Image
|
| 1495 |
-
# from PyPDF2 import PdfReader
|
| 1496 |
-
# from urllib.parse import quote
|
| 1497 |
-
# from xml.etree import ElementTree as ET
|
| 1498 |
-
# from openai import OpenAI
|
| 1499 |
-
# import extra_streamlit_components as stx
|
| 1500 |
-
# from streamlit.runtime.scriptrunner import get_script_run_ctx
|
| 1501 |
-
# import asyncio
|
| 1502 |
-
# import edge_tts
|
| 1503 |
-
# from streamlit_marquee import streamlit_marquee
|
| 1504 |
-
# from typing import Tuple, Optional
|
| 1505 |
-
# import pandas as pd
|
| 1506 |
-
#
|
| 1507 |
-
# import nest_asyncio
|
| 1508 |
-
# nest_asyncio.apply()
|
| 1509 |
-
#
|
| 1510 |
-
# st.set_page_config(
|
| 1511 |
-
# page_title="π²TalkingAIResearcherπ",
|
| 1512 |
-
# page_icon="π²π",
|
| 1513 |
-
# layout="wide",
|
| 1514 |
-
# initial_sidebar_state="auto",
|
| 1515 |
-
# menu_items={
|
| 1516 |
-
# 'Get Help': 'https://huggingface.co/awacke1',
|
| 1517 |
-
# 'Report a bug': 'https://huggingface.co/spaces/awacke1',
|
| 1518 |
-
# 'About': "π²TalkingAIResearcherπ"
|
| 1519 |
-
# }
|
| 1520 |
-
# )
|
| 1521 |
-
# load_dotenv()
|
| 1522 |
-
#
|
| 1523 |
-
# EDGE_TTS_VOICES = [
|
| 1524 |
-
# "en-US-AriaNeural",
|
| 1525 |
-
# "en-US-GuyNeural",
|
| 1526 |
-
# "en-US-JennyNeural",
|
| 1527 |
-
# "en-GB-SoniaNeural",
|
| 1528 |
-
# "en-GB-RyanNeural",
|
| 1529 |
-
# "en-AU-NatashaNeural",
|
| 1530 |
-
# "en-AU-WilliamNeural",
|
| 1531 |
-
# "en-CA-ClaraNeural",
|
| 1532 |
-
# "en-CA-LiamNeural"
|
| 1533 |
-
# ]
|
| 1534 |
-
#
|
| 1535 |
-
# # (Plus additional setup and functions as shown in the snippet above.)
|
| 1536 |
-
#
|
| 1537 |
-
# End of optional features block.
|
|
|
|
| 33 |
# βββββββββββββ EXTERNAL HELP LINKS (Always visible in sidebar) βββββββββββββ
|
| 34 |
# =============================================================================
|
| 35 |
external_links = [
|
| 36 |
+
{"title": "CosmosDB GenAI Full Text Search", "url": "https://learn.microsoft.com/en-us/azure/cosmos-db/gen-ai/full-text-search", "emoji": "π»"},
|
| 37 |
+
{"title": "CosmosDB SQL API Client Library", "url": "https://learn.microsoft.com/en-us/python/api/overview/azure/cosmos-readme?view=azure-python", "emoji": "π»"},
|
| 38 |
+
{"title": "CosmosDB Index and Query Vectors", "url": "https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-python-vector-index-query", "emoji": "π»"},
|
| 39 |
+
{"title": "CosmosDB NoSQL Materialized Views", "url": "https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/materialized-views", "emoji": "π»"},
|
| 40 |
+
{"title": "LangChain Vector Store Guide", "url": "https://python.langchain.com/docs/integrations/vectorstores/azure_cosmos_db_no_sql/", "emoji": "π»"},
|
| 41 |
+
{"title": "Vector Database Prompt Engineering RAG for Python", "url": "https://learn.microsoft.com/en-us/azure/cosmos-db/vector-database?source=recommendations", "emoji": "π»"},
|
| 42 |
{"title": "MergeKit Official GitHub", "url": "https://github.com/arcee-ai/MergeKit", "emoji": "π»"},
|
| 43 |
{"title": "MergeKit Sample Usage", "url": "https://github.com/arcee-ai/MergeKit#examples", "emoji": "π"},
|
| 44 |
{"title": "DistillKit Official GitHub", "url": "https://github.com/arcee-ai/DistillKit", "emoji": "π»"},
|
|
|
|
| 45 |
{"title": "DistillKit Sample Usage", "url": "https://github.com/arcee-ai/DistillKit#usage", "emoji": "π"},
|
|
|
|
|
|
|
| 46 |
{"title": "arcee.ai Official Website", "url": "https://arcee.ai", "emoji": "π"},
|
| 47 |
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