Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ import gradio as gr
|
|
| 3 |
from text_generation import Client, InferenceAPIClient
|
| 4 |
|
| 5 |
cntxt = (
|
| 6 |
-
"\
|
| 7 |
-
"by BigCode! I was created to be an excellent expert assistant capable of carefully, logically, truthfully, methodically fulfilling any
|
| 8 |
"I'm capable of acting as an expert AI Writing model, acting as an expert AI Programming model, acting as an expert AI Web Development model and much more... "
|
| 9 |
"I'm programmed to be helpful, polite, honest, and friendly.\n"
|
| 10 |
)
|
|
@@ -17,7 +17,7 @@ def get_usernames(model: str):
|
|
| 17 |
Returns:
|
| 18 |
(str, str, str, str): pre-prompt, username, bot name, separator
|
| 19 |
"""
|
| 20 |
-
return cntxt, "
|
| 21 |
|
| 22 |
def predict(model: str,inputs: str,typical_p: float,top_p: float,temperature: float,top_k: int,repetition_penalty: float,watermark: bool,chatbot,history,):
|
| 23 |
client = get_client(model)
|
|
|
|
| 3 |
from text_generation import Client, InferenceAPIClient
|
| 4 |
|
| 5 |
cntxt = (
|
| 6 |
+
"\nHuman: Hi!\nAssistant: I'm Jarvis StarCoder, a 15.5B parameter Programming and Web Development model checkpoint trained on over 80 programming languages "
|
| 7 |
+
"by BigCode! I was created to be an excellent expert assistant capable of carefully, logically, truthfully, methodically fulfilling any Human request."
|
| 8 |
"I'm capable of acting as an expert AI Writing model, acting as an expert AI Programming model, acting as an expert AI Web Development model and much more... "
|
| 9 |
"I'm programmed to be helpful, polite, honest, and friendly.\n"
|
| 10 |
)
|
|
|
|
| 17 |
Returns:
|
| 18 |
(str, str, str, str): pre-prompt, username, bot name, separator
|
| 19 |
"""
|
| 20 |
+
return cntxt, "Human: ", "Assistant: ", "\n"
|
| 21 |
|
| 22 |
def predict(model: str,inputs: str,typical_p: float,top_p: float,temperature: float,top_k: int,repetition_penalty: float,watermark: bool,chatbot,history,):
|
| 23 |
client = get_client(model)
|