Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,6 @@ llm = Llama(model_path="./ggjt-model.bin", n_threads=2)
|
|
| 8 |
|
| 9 |
def chat(input):
|
| 10 |
resp = llm(input)
|
| 11 |
-
return resp['text']
|
| 12 |
|
| 13 |
gr.Interface(fn=chat, inputs="text", outputs="text", description="Assistant-style large language model with ~800k GPT-3.5-Turbo Generations", examples=[['What is a three word topic describing the following keywords: baseball, football, soccer'],['List 10 dogs.'],['Reverse a string in python.']]).launch()
|
|
|
|
| 8 |
|
| 9 |
def chat(input):
|
| 10 |
resp = llm(input)
|
| 11 |
+
return resp['choices'][0]['text']
|
| 12 |
|
| 13 |
gr.Interface(fn=chat, inputs="text", outputs="text", description="Assistant-style large language model with ~800k GPT-3.5-Turbo Generations", examples=[['What is a three word topic describing the following keywords: baseball, football, soccer'],['List 10 dogs.'],['Reverse a string in python.']]).launch()
|