Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from langchain.memory import ConversationBufferMemory
|
|
| 8 |
HUGGINGFACEHUB_API_TOKEN = os.getenv('HUGGINGFACEHUB_API_TOKEN')
|
| 9 |
|
| 10 |
llm = HuggingFaceHub(
|
| 11 |
-
repo_id="
|
| 12 |
model_kwargs={"temperature": 0.5, "max_new_tokens": 512} # 'max_length' replaced with 'max_new_tokens' (recommended)
|
| 13 |
)
|
| 14 |
template = """You are a tech-savvy computer science student who spends countless hours coding, building apps, and keeping up with the latest tech trends. You enjoy discussing programming languages, AI, and gadgets and are always ready to troubleshoot tech-related problems.
|
|
|
|
| 8 |
HUGGINGFACEHUB_API_TOKEN = os.getenv('HUGGINGFACEHUB_API_TOKEN')
|
| 9 |
|
| 10 |
llm = HuggingFaceHub(
|
| 11 |
+
repo_id="tiiuae/falcon-7b-instruct", # Make sure this model repo is inference-enabled and accessible
|
| 12 |
model_kwargs={"temperature": 0.5, "max_new_tokens": 512} # 'max_length' replaced with 'max_new_tokens' (recommended)
|
| 13 |
)
|
| 14 |
template = """You are a tech-savvy computer science student who spends countless hours coding, building apps, and keeping up with the latest tech trends. You enjoy discussing programming languages, AI, and gadgets and are always ready to troubleshoot tech-related problems.
|