Spaces:
Runtime error
Runtime error
Baskar2005
commited on
Commit
•
e0b0a1c
1
Parent(s):
c4b2856
Update app.py
Browse files
app.py
CHANGED
@@ -1,18 +1,14 @@
|
|
1 |
-
import
|
2 |
-
import locale
|
3 |
-
import transformers
|
4 |
-
import torch
|
5 |
-
import json
|
6 |
import logging
|
7 |
-
|
8 |
from huggingface_hub import login
|
|
|
9 |
from huggingface_hub import InferenceClient
|
10 |
from langchain_openai import AzureChatOpenAI
|
11 |
-
|
12 |
from langchain.chains import LLMSummarizationCheckerChain
|
13 |
-
|
14 |
-
|
15 |
-
from typing import Set, List, Tuple
|
16 |
huggingface_key = os.getenv('HUGGINGFACE_KEY')
|
17 |
login(huggingface_key) # Huggingface api token
|
18 |
|
|
|
1 |
+
import re
|
|
|
|
|
|
|
|
|
2 |
import logging
|
3 |
+
import gradio as gr
|
4 |
from huggingface_hub import login
|
5 |
+
from typing import Set, List, Tuple
|
6 |
from huggingface_hub import InferenceClient
|
7 |
from langchain_openai import AzureChatOpenAI
|
8 |
+
|
9 |
from langchain.chains import LLMSummarizationCheckerChain
|
10 |
+
|
11 |
+
|
|
|
12 |
huggingface_key = os.getenv('HUGGINGFACE_KEY')
|
13 |
login(huggingface_key) # Huggingface api token
|
14 |
|