Spaces:
Runtime error
Runtime error
sharing
Browse files
main.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import os
|
|
|
|
| 2 |
import torch
|
| 3 |
import gradio as gr
|
| 4 |
import transformers
|
|
@@ -421,4 +422,8 @@ with gr.Blocks(css="#refresh-button { max-width: 32px }") as demo:
|
|
| 421 |
|
| 422 |
|
| 423 |
if __name__ == "__main__":
|
| 424 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
+
import argparse
|
| 3 |
import torch
|
| 4 |
import gradio as gr
|
| 5 |
import transformers
|
|
|
|
| 422 |
|
| 423 |
|
| 424 |
if __name__ == "__main__":
|
| 425 |
+
parser = argparse.ArgumentParser(description="Simple LLaMA Finetuner")
|
| 426 |
+
parser.add_argument("-s", "--share", action="store_true", help="Enable sharing of the Gradio interface")
|
| 427 |
+
args = parser.parse_args()
|
| 428 |
+
|
| 429 |
+
demo.queue().launch(share=args.share)
|