update
Browse files- README.md +1 -1
- main.py +11 -3
- requirements.txt +3 -3
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🐠
|
|
4 |
colorFrom: purple
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: main.py
|
9 |
pinned: false
|
10 |
---
|
|
|
4 |
colorFrom: purple
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.44.1
|
8 |
app_file: main.py
|
9 |
pinned: false
|
10 |
---
|
main.py
CHANGED
@@ -156,14 +156,22 @@ def main():
|
|
156 |
|
157 |
yield output
|
158 |
|
159 |
-
model_name_choices = [
|
160 |
-
|
|
|
|
|
161 |
[
|
162 |
"qgyd2021/lip_service_4chan", "qgyd2021/chinese_chitchat",
|
163 |
-
"qgyd2021/chinese_porn_novel", "qgyd2021/
|
164 |
"qgyd2021/similar_question_generation",
|
165 |
]
|
166 |
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
demo = gr.Interface(
|
168 |
fn=fn_stream,
|
169 |
inputs=[
|
|
|
156 |
|
157 |
yield output
|
158 |
|
159 |
+
model_name_choices = [
|
160 |
+
"trained_models/lip_service_4chan",
|
161 |
+
"trained_models/chinese_porn_novel"
|
162 |
+
] if platform.system() == "Windows" else \
|
163 |
[
|
164 |
"qgyd2021/lip_service_4chan", "qgyd2021/chinese_chitchat",
|
165 |
+
"qgyd2021/chinese_porn_novel", "qgyd2021/few_shot_intent_gpt2_base",
|
166 |
"qgyd2021/similar_question_generation",
|
167 |
]
|
168 |
|
169 |
+
# model_name_choices = [
|
170 |
+
# "qgyd2021/lip_service_4chan", "qgyd2021/chinese_chitchat",
|
171 |
+
# "qgyd2021/chinese_porn_novel", "qgyd2021/few_shot_intent_gpt2_base",
|
172 |
+
# "qgyd2021/similar_question_generation",
|
173 |
+
# ]
|
174 |
+
|
175 |
demo = gr.Interface(
|
176 |
fn=fn_stream,
|
177 |
inputs=[
|
requirements.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
gradio==
|
2 |
-
pydantic==
|
3 |
thinc==7.4.6
|
4 |
spacy==2.3.9
|
5 |
transformers==4.30.2
|
6 |
numpy==1.21.4
|
7 |
tqdm==4.62.3
|
8 |
torch==1.13.0
|
9 |
-
datasets
|
|
|
1 |
+
gradio==4.44.1
|
2 |
+
pydantic==2.7.4
|
3 |
thinc==7.4.6
|
4 |
spacy==2.3.9
|
5 |
transformers==4.30.2
|
6 |
numpy==1.21.4
|
7 |
tqdm==4.62.3
|
8 |
torch==1.13.0
|
9 |
+
datasets==2.19.2
|