[MNT] Update some file

This commit is contained in:
herobrine19
2023-05-22 15:47:47 +08:00
parent e95f170332
commit e47c1d890c
4 changed files with 3 additions and 503 deletions

View File

@ -19,7 +19,7 @@ else:
try:
if torch.backends.mps.is_available():
device = "mps"
except: # noqa: E722
except:
pass
@ -201,28 +201,9 @@ def main(
label="Output",
)
],
title="🦙🌲 LLM-LoRA",
description="", # noqa: E501
title="🦙🌲 LaWGPT",
description="",
).queue().launch(server_name="0.0.0.0", share=share_gradio)
# Old testing code follows.
"""
# testing code for readme
for instruction in [
"Tell me about alpacas.",
"Tell me about the president of Mexico in 2019.",
"Tell me about the king of France in 2019.",
"List all Canadian provinces in alphabetical order.",
"Write a Python program that prints the first 10 Fibonacci numbers.",
"Write a program that prints the numbers from 1 to 100. But for multiples of three print 'Fizz' instead of the number and for the multiples of five print 'Buzz'. For numbers which are multiples of both three and five print 'FizzBuzz'.", # noqa: E501
"Tell me five words that rhyme with 'shock'.",
"Translate the sentence 'I have no mouth but I must scream' into Spanish.",
"Count up from 1 to 500.",
]:
print("Instruction:", instruction)
print("Response:", evaluate(instruction))
print()
"""
if __name__ == "__main__":