Spaces:
Sleeping
Sleeping
Merge pull request #74 from barun-saha/visual
Browse files
README.md
CHANGED
@@ -36,16 +36,23 @@ Clicking on the button will download the file.
|
|
36 |
|
37 |
# Summary of the LLMs
|
38 |
|
39 |
-
|
40 |
|
41 |
-
|
42 |
-
| :-------- | :------- |:----------------------------------------------------------------------------| :------- |
|
43 |
-
| Mistral 7B Instruct v0.2 | Hugging Face (`hf`) | Optional but encouraged; [get here](https://huggingface.co/settings/tokens) | Faster, shorter content |
|
44 |
-
| Mistral Nemo Instruct 2407 | Hugging Face (`hf`) | Optional but encouraged; [get here](https://huggingface.co/settings/tokens) | Slower, longer content |
|
45 |
-
| Gemini 1.5 Flash | Google Gemini API (`gg`) | Mandatory; [get here](https://aistudio.google.com/apikey) | Faster, longer content |
|
46 |
-
| Command R+ | Cohere (`co`) | Mandatory; [get here](https://dashboard.cohere.com/api-keys) | Shorter, simpler content |
|
47 |
|
48 |
-
The
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
In addition, offline LLMs provided by Ollama can be used. Read below to know more.
|
51 |
|
|
|
36 |
|
37 |
# Summary of the LLMs
|
38 |
|
39 |
+
SlideDeck AI allows the use of different LLMs from four online providers—Hugging Face, Google, Cohere, and Together AI. These service providers—even the latter three—offer generous free usage of relevant LLMs without requiring any billing information.
|
40 |
|
41 |
+
Based on several experiments, SlideDeck AI generally recommends the use of Mistral NeMo and Gemini Flash to generate the slide decks.
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
+
The supported LLMs offer different styles of content generation. Use one of the following LLMs along with relevant API keys/access tokens, as appropriate, to create the content of the slide deck:
|
44 |
+
|
45 |
+
| LLM | Provider (code) | Requires API key | Characteristics |
|
46 |
+
|:---------------------------------| :------- |:----------------------------------------------------------------------------|:-------------------------|
|
47 |
+
| Mistral 7B Instruct v0.2 | Hugging Face (`hf`) | Optional but encouraged; [get here](https://huggingface.co/settings/tokens) | Faster, shorter content |
|
48 |
+
| Mistral NeMo Instruct 2407 | Hugging Face (`hf`) | Optional but encouraged; [get here](https://huggingface.co/settings/tokens) | Slower, longer content |
|
49 |
+
| Gemini 1.5 Flash | Google Gemini API (`gg`) | Mandatory; [get here](https://aistudio.google.com/apikey) | Faster, longer content |
|
50 |
+
| Gemini 2.0 Flash | Google Gemini API (`gg`) | Mandatory; [get here](https://aistudio.google.com/apikey) | Faster, longer content |
|
51 |
+
| Command R+ | Cohere (`co`) | Mandatory; [get here](https://dashboard.cohere.com/api-keys) | Shorter, simpler content |
|
52 |
+
| Llama 3.3 70B Instruct Turbo | Together AI (`to`) | Mandatory; [get here](https://api.together.ai/settings/api-keys) | Detailed, slower |
|
53 |
+
| Llama 3.1 8B Instruct Turbo 128K | Together AI (`to`) | Mandatory; [get here](https://api.together.ai/settings/api-keys) | Shorter |
|
54 |
+
|
55 |
+
The Mistral models (via Hugging Face) do not mandatorily require an access token. However, you are encouraged to get and use your own Hugging Face access token.
|
56 |
|
57 |
In addition, offline LLMs provided by Ollama can be used. Read below to know more.
|
58 |
|
app.py
CHANGED
@@ -322,8 +322,8 @@ def set_up_chat_ui():
|
|
322 |
f'An unexpected error occurred while generating the content: {ex}'
|
323 |
'\nPlease try again later, possibly with different inputs.'
|
324 |
' Alternatively, try selecting a different LLM from the dropdown list.'
|
325 |
-
' If you are using Cohere or
|
326 |
-
' a correct API key.',
|
327 |
True
|
328 |
)
|
329 |
return
|
|
|
322 |
f'An unexpected error occurred while generating the content: {ex}'
|
323 |
'\nPlease try again later, possibly with different inputs.'
|
324 |
' Alternatively, try selecting a different LLM from the dropdown list.'
|
325 |
+
' If you are using Cohere, Gemini, or Together AI models, make sure that you have'
|
326 |
+
' provided a correct API key.',
|
327 |
True
|
328 |
)
|
329 |
return
|