Spaces:
Runtime error
Runtime error
Commit
•
ce6735e
1
Parent(s):
43e36b0
Add retrieval of secret in HF spaces
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import os, requests
|
2 |
import gradio as gr
|
3 |
-
|
4 |
|
5 |
### This code loads the models and undertakes inference locally ###
|
6 |
|
@@ -109,7 +109,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
109 |
Different Strokes (Prompts) for Different Folks (LLMs)
|
110 |
</h1>
|
111 |
<h4 style="font-weight: 50; font-size: 14px; margin-bottom:0px; margin-top:0px;">
|
112 |
-
After reading <a href="https://github.com/dair-ai/Prompt-Engineering-Guide">Prompt Engineering Guide</a>, which is an excellent guide on prompts for large language
|
113 |
</h4>
|
114 |
</div>
|
115 |
""")
|
|
|
1 |
import os, requests
|
2 |
import gradio as gr
|
3 |
+
HF_READ_API_KEY = os.environ["HF_READ_API_KEY"]
|
4 |
|
5 |
### This code loads the models and undertakes inference locally ###
|
6 |
|
|
|
109 |
Different Strokes (Prompts) for Different Folks (LLMs)
|
110 |
</h1>
|
111 |
<h4 style="font-weight: 50; font-size: 14px; margin-bottom:0px; margin-top:0px;">
|
112 |
+
After reading <a href="https://github.com/dair-ai/Prompt-Engineering-Guide">Prompt Engineering Guide</a>, which is an excellent guide on prompts for large language models (LLMs), specifically OpenAI's LLMs, I was interested in seeing the results with for other LLMs. Hence, did up a simple demonstration of different prompts for different popular LLMs of different sizes. The prompt examples are taken from the Prompt Engineering Guide, and the LLMs that you can select below are all available on Hugging Face. If you are interested in comparing them with the prompts from OpenAI's model, you can refer to the writeup in the <a href="https://github.com/dair-ai/Prompt-Engineering-Guide">Prompt Engineering Guide</a> itself.
|
113 |
</h4>
|
114 |
</div>
|
115 |
""")
|