Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ hf_hub_download(repo_id="LLukas22/gpt4all-lora-quantized-ggjt", filename="ggjt-m
|
|
7 |
llm = Llama(model_path="./ggjt-model.bin")
|
8 |
|
9 |
def chat(input):
|
10 |
-
|
|
|
11 |
|
12 |
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()
|
|
|
7 |
llm = Llama(model_path="./ggjt-model.bin")
|
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()
|