cipherunhsiv commited on
Commit
538c8b3
·
verified ·
1 Parent(s): 78efe2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,8 +23,8 @@ def mod(pdf_url):
23
  os.makedirs("/Data/") # /content/Data --> /Data/
24
  download_pdf_from_url(pdf_url) # /content/Data --> /Data/
25
  documents = SimpleDirectoryReader("/Data/").load_data()
26
- system_prompt = """You are an expert share market document summarizer specializing in creating concise, comprehensive summaries tailored for professional audiences. Your goal is to summarize pdf which may also include tabular columns, as
27
- accurately as possible based on the instructions and context provided."""
28
  query_wrapper_prompt = SimpleInputPrompt("<|USER|>{query_str}<|ASSISTANT|>")
29
  from huggingface_hub import login
30
  hf_token = os.environ.get('HF_TOKEN')
 
23
  os.makedirs("/Data/") # /content/Data --> /Data/
24
  download_pdf_from_url(pdf_url) # /content/Data --> /Data/
25
  documents = SimpleDirectoryReader("/Data/").load_data()
26
+ system_prompt = '''You are an expert share market document summarizer specializing in creating concise, comprehensive summaries tailored for professional audiences. Your goal is to summarize pdf which may also include tabular columns, as
27
+ accurately as possible based on the instructions and context provided.'''
28
  query_wrapper_prompt = SimpleInputPrompt("<|USER|>{query_str}<|ASSISTANT|>")
29
  from huggingface_hub import login
30
  hf_token = os.environ.get('HF_TOKEN')