Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,20 +1,47 @@
|
|
1 |
import streamlit as st
|
2 |
-
|
3 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
import pandas as pd
|
5 |
import traceback
|
6 |
import shutil
|
7 |
from github import Github
|
8 |
from git import Repo
|
9 |
-
from datetime import datetime
|
10 |
-
import base64
|
11 |
-
import json
|
12 |
import uuid # π² For generating unique IDs
|
|
|
13 |
from urllib.parse import quote # π For encoding URLs
|
14 |
from gradio_client import Client # π For connecting to Gradio apps
|
15 |
|
16 |
# π Welcome to our fun-filled Cosmos DB and GitHub Integration app!
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
# π Cosmos DB configuration
|
20 |
ENDPOINT = "https://acae-afd.documents.azure.com:443/"
|
@@ -947,46 +974,3 @@ def main():
|
|
947 |
if __name__ == "__main__":
|
948 |
main()
|
949 |
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
if __name__ == "__main__":
|
992 |
-
main()
|
|
|
1 |
import streamlit as st
|
2 |
+
import anthropic
|
3 |
import os
|
4 |
+
import base64
|
5 |
+
import glob
|
6 |
+
import json
|
7 |
+
import pytz
|
8 |
+
from datetime import datetime
|
9 |
+
from streamlit.components.v1 import html
|
10 |
+
from PIL import Image
|
11 |
+
import re
|
12 |
+
#from urllib.parse import quote
|
13 |
+
|
14 |
+
from azure.cosmos import CosmosClient, exceptions
|
15 |
import pandas as pd
|
16 |
import traceback
|
17 |
import shutil
|
18 |
from github import Github
|
19 |
from git import Repo
|
|
|
|
|
|
|
20 |
import uuid # π² For generating unique IDs
|
21 |
+
|
22 |
from urllib.parse import quote # π For encoding URLs
|
23 |
from gradio_client import Client # π For connecting to Gradio apps
|
24 |
|
25 |
# π Welcome to our fun-filled Cosmos DB and GitHub Integration app!
|
26 |
+
# 1. App Configuration
|
27 |
+
Site_Name = 'π€π§ Claude35ππ¬'
|
28 |
+
title="π€π§ Claude35ππ¬"
|
29 |
+
helpURL='https://huggingface.co/awacke1'
|
30 |
+
bugURL='https://huggingface.co/spaces/awacke1'
|
31 |
+
icons='π€π§ π¬π'
|
32 |
+
|
33 |
+
st.set_page_config(
|
34 |
+
page_title=title,
|
35 |
+
page_icon=icons,
|
36 |
+
layout="wide",
|
37 |
+
initial_sidebar_state="auto",
|
38 |
+
menu_items={
|
39 |
+
'Get Help': helpURL,
|
40 |
+
'Report a bug': bugURL,
|
41 |
+
'About': title
|
42 |
+
}
|
43 |
+
)
|
44 |
+
|
45 |
|
46 |
# π Cosmos DB configuration
|
47 |
ENDPOINT = "https://acae-afd.documents.azure.com:443/"
|
|
|
974 |
if __name__ == "__main__":
|
975 |
main()
|
976 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|