Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,9 +25,9 @@ class UnifiedAssistant:
|
|
25 |
trust_remote_code=True
|
26 |
)
|
27 |
|
28 |
-
# Initialize Docs Assistant (Using
|
29 |
print("Loading Documentation Assistant Model...")
|
30 |
-
self.docs_model_name = "
|
31 |
self.docs_tokenizer = AutoTokenizer.from_pretrained(
|
32 |
self.docs_model_name,
|
33 |
trust_remote_code=True
|
@@ -68,7 +68,7 @@ class UnifiedAssistant:
|
|
68 |
inputs = self.code_tokenizer(query, return_tensors="pt").to(self.code_model.device)
|
69 |
outputs = self.code_model.generate(
|
70 |
**inputs,
|
71 |
-
max_length=
|
72 |
temperature=0.7,
|
73 |
top_p=0.95,
|
74 |
do_sample=True
|
@@ -195,7 +195,7 @@ def create_app():
|
|
195 |
### Your AI-Powered Documentation & Code Assistant
|
196 |
|
197 |
This application combines three powerful AI models:
|
198 |
-
- π»
|
199 |
- π Documentation Helper (DocGPT-40B)
|
200 |
- π PDF Analyzer (Llama-3.3-70B)
|
201 |
""")
|
|
|
25 |
trust_remote_code=True
|
26 |
)
|
27 |
|
28 |
+
# Initialize Docs Assistant (Using Zephyr instead)
|
29 |
print("Loading Documentation Assistant Model...")
|
30 |
+
self.docs_model_name = "HuggingFaceH4/zephyr-7b-beta"
|
31 |
self.docs_tokenizer = AutoTokenizer.from_pretrained(
|
32 |
self.docs_model_name,
|
33 |
trust_remote_code=True
|
|
|
68 |
inputs = self.code_tokenizer(query, return_tensors="pt").to(self.code_model.device)
|
69 |
outputs = self.code_model.generate(
|
70 |
**inputs,
|
71 |
+
max_length=2048,
|
72 |
temperature=0.7,
|
73 |
top_p=0.95,
|
74 |
do_sample=True
|
|
|
195 |
### Your AI-Powered Documentation & Code Assistant
|
196 |
|
197 |
This application combines three powerful AI models:
|
198 |
+
- π» Code Assistant (Qwen2.5-Coder-32B)
|
199 |
- π Documentation Helper (DocGPT-40B)
|
200 |
- π PDF Analyzer (Llama-3.3-70B)
|
201 |
""")
|