fetch model
Browse files
app.py
CHANGED
@@ -2,14 +2,12 @@ import gradio as gr
|
|
2 |
import argparse
|
3 |
import os
|
4 |
import json
|
|
|
5 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
6 |
|
7 |
MAX_MAX_NEW_TOKENS = 4096
|
8 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
9 |
|
10 |
-
from threading import Thread
|
11 |
-
|
12 |
-
|
13 |
|
14 |
def parse_args():
|
15 |
parser = argparse.ArgumentParser()
|
|
|
2 |
import argparse
|
3 |
import os
|
4 |
import json
|
5 |
+
from threading import Thread
|
6 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
7 |
|
8 |
MAX_MAX_NEW_TOKENS = 4096
|
9 |
DEFAULT_MAX_NEW_TOKENS = 1024
|
10 |
|
|
|
|
|
|
|
11 |
|
12 |
def parse_args():
|
13 |
parser = argparse.ArgumentParser()
|