Update app.py
Browse files
app.py
CHANGED
|
@@ -11,11 +11,7 @@ import warnings
|
|
| 11 |
warnings.filterwarnings('ignore')
|
| 12 |
#streamlit run app.py
|
| 13 |
def get_llama_response(inputtext,wordcount,blogstyle):
|
| 14 |
-
|
| 15 |
-
# llm = CTransformers(model="model/llama-2-7b-chat.ggmlv3.q2_K.bin",
|
| 16 |
-
# model_type='llama',
|
| 17 |
-
# config={'max_new_tokens':256,
|
| 18 |
-
# 'temperature':0.01})
|
| 19 |
template = f"""
|
| 20 |
Write a Blog as a {blogstyle} on {inputtext} within {wordcount} words.
|
| 21 |
"""
|
|
|
|
| 11 |
warnings.filterwarnings('ignore')
|
| 12 |
#streamlit run app.py
|
| 13 |
def get_llama_response(inputtext,wordcount,blogstyle):
|
| 14 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
template = f"""
|
| 16 |
Write a Blog as a {blogstyle} on {inputtext} within {wordcount} words.
|
| 17 |
"""
|