Spaces:
Runtime error
Runtime error
raoqu
commited on
Commit
·
9a63916
1
Parent(s):
512285f
update
Browse files- .gitmodules +1 -1
- app.py +1 -2
.gitmodules
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
[submodule "model"]
|
2 |
-
path =
|
3 |
url = https://huggingface.co/raoqu/Qu_finetuned_internlm2_5-7b-chat
|
|
|
1 |
[submodule "model"]
|
2 |
+
path =model
|
3 |
url = https://huggingface.co/raoqu/Qu_finetuned_internlm2_5-7b-chat
|
app.py
CHANGED
@@ -20,7 +20,6 @@ import warnings
|
|
20 |
from dataclasses import asdict, dataclass
|
21 |
from typing import Callable, List, Optional
|
22 |
|
23 |
-
|
24 |
import streamlit as st
|
25 |
import torch
|
26 |
from torch import nn
|
@@ -31,7 +30,7 @@ from transformers.utils import logging
|
|
31 |
from transformers import AutoTokenizer, AutoModelForCausalLM # isort: skip
|
32 |
|
33 |
logger = logging.get_logger(__name__)
|
34 |
-
model_name_or_path="./model"
|
35 |
|
36 |
@dataclass
|
37 |
class GenerationConfig:
|
|
|
20 |
from dataclasses import asdict, dataclass
|
21 |
from typing import Callable, List, Optional
|
22 |
|
|
|
23 |
import streamlit as st
|
24 |
import torch
|
25 |
from torch import nn
|
|
|
30 |
from transformers import AutoTokenizer, AutoModelForCausalLM # isort: skip
|
31 |
|
32 |
logger = logging.get_logger(__name__)
|
33 |
+
model_name_or_path = "./model"
|
34 |
|
35 |
@dataclass
|
36 |
class GenerationConfig:
|