mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
fixed errors
This commit is contained in:
parent
a1e9e73011
commit
07c1183289
11
app.py
11
app.py
@ -939,10 +939,13 @@ class LoLLMsWebUI(LoLLMsAPPI):
|
||||
|
||||
def get_active_model(self):
|
||||
if self.binding is not None:
|
||||
models = self.binding.list_models(self.config)
|
||||
index = models.index(self.config.model_name)
|
||||
ASCIIColors.yellow("Listing models")
|
||||
return jsonify({"model":models[index],"index":index})
|
||||
try:
|
||||
models = self.binding.list_models(self.config)
|
||||
index = models.index(self.config.model_name)
|
||||
ASCIIColors.yellow("Listing models")
|
||||
return jsonify({"model":models[index],"index":index})
|
||||
except Exception as ex:
|
||||
return jsonify(None)
|
||||
else:
|
||||
return jsonify(None)
|
||||
|
||||
|
@ -13,4 +13,12 @@ content: |
|
||||
\chapter{Introduction}
|
||||
@<generation_placeholder>@
|
||||
\end{document}
|
||||
```
|
||||
```
|
||||
snippets:
|
||||
- Import graphics(required to add graphics to the page) :
|
||||
\usepackage[demo]{graphic}
|
||||
- Add graph: |
|
||||
\includegraphics[width=4in]{@<Image name>@}% Replace with your own image path
|
||||
|
||||
help: |
|
||||
Builds a latex code for a book
|
Loading…
Reference in New Issue
Block a user