Update 'main.py'
This commit is contained in:
@@ -18,19 +18,12 @@ LLM_EXAMPLE = (
|
||||
"OUTPUT (JSON): \n"
|
||||
"{"
|
||||
'"title": "Statistical and Computational Aspects of Dynamics",'
|
||||
'"link": "http://www.crm.sns.it/event/507/", '
|
||||
'"url": "http://www.crm.sns.it/event/507/", '
|
||||
'"description": "Organized by Buddhima Kasun Fernando Akurugodage (Centro di ricerca matematica'
|
||||
" Ennio De Giorgi – SNS), Paolo Giulietti, and Tanja Isabelle Schindler (Universität Wien,"
|
||||
' Austria). Centro De Giorgi", '
|
||||
'"organizers": ['
|
||||
'"Buddhima Kasun Fernando Akurugodage", '
|
||||
'"Paolo Giulietti", '
|
||||
'"Tanja Isabelle Schindler"'
|
||||
"]"
|
||||
'"location": "SNS, Pisa", '
|
||||
'"date": "December 13 – 16, 2022.", '
|
||||
'"start_date": "2022-12-13", '
|
||||
'"end_date": "2022-12-16"'
|
||||
' Austria). Centro De Giorgi - SNS, Pisa.", '
|
||||
'"startDate": "2022-12-13", '
|
||||
'"endDate": "2022-12-16"'
|
||||
"}\n"
|
||||
"\n"
|
||||
"INPUT:\n"
|
||||
@@ -93,8 +86,6 @@ conference_html_snippets = [snippet for link in page_urls for snippet in crawl_p
|
||||
print("LLM Example Context:")
|
||||
print(LLM_EXAMPLE)
|
||||
|
||||
exit(1)
|
||||
|
||||
# Load the model and, set the chat format and use the default model context length
|
||||
llm = Llama(model_path="./mistral-7b-instruct-v0.2.Q4_K_M.gguf", chat_format="llama-2", n_ctx=0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user